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

Hello, sorry for my bad english. I have a byte e.g. 0x1A. how can i check the High-nibbel and Low-nibbel?

what is the Arduino command highByte() and lowByte()?

can you help me? thank you

You could bitwise AND (&) the value with 0x0F and 0xF0 to pull the high and low nibble; ie:

byte high = (0x1A & 0xF0) >> 4; // bit-shift 4 places right to get value byte low = 0x1A & 0x0F; // no bit-shifting needed

I think that should work...

:)

what is the Arduino command highByte() and lowByte()?

Forgot to answer this - these functions are for pulling the high and low -bytes- of a -word- (ie, 16 bits); you're wanting to pull the high and low nibbles (4 bits) of a byte; there's no built in function for this in the standard Arduino setup. Someone may have already written a library, though (bit/byte manipulation library)...

:)

thank you for your answer cr0sh