HEX Split

Xenon69:
then i can use it like this:
if (5_HexNumber == D)
digitalWrite(LedPin, HIGH);
else
digitalWrite(LedPin, LOW);

Now you can write this as:

if (read_nibble(results.value, 5) == 0xD)
...

You will just have to figure out the numbering or change read_nibble() to the number scheme you want for your code. So I think we are done here?
Cheers!