how can i check the High-nibbel and Low-nibbel?


hello,
sorry bad english.
i have byte e.g. 0x1a.
how can check high-nibbel , low-nibbel?

what arduino command highbyte() , lowbyte()?

can me?
thank you

you bitwise , (&) value 0x0f , 0xf0 pull high , low nibble; ie:

quote
byte high = (0x1a & 0xf0) >> 4; // bit-shift 4 places right value
byte low = 0x1a & 0x0f; // no bit-shifting needed


i think should work...

:)


Arduino Forum > Forum 2005-2010 (read only) > Software > Syntax & Programs > how can i check the High-nibbel and Low-nibbel?


arduino

Comments

Popular posts from this blog

CAN'T INSTALL MAMBELFISH 1.5 FROM DIRECTORY - Joomla! Forum - community, help and support

error: expected initializer before 'void'

CPU load monitoring using GPIO and leds - Raspberry Pi Forums