Small problem i'm having when playing around with hex, decimal and binary values. I'm trying to output the decimal number 255 as hex and binary, the binary is displaying correctly however the hex value is outputting "FFFFFFFF". I'll post my code below
An int8_t is signed, and so does not have enough bits to represent +255. Perhaps your compiler is giving you a warning about this? I would try with uint8_t instead.