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
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:
i think should work...

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
Post a Comment