I'm trying to convert unsigned chars to their hex ASCII values but in binary form.
For example:
unsigned char C to 0100 0011 (43)
I can get from hex to binary the issue is getting from char to its hex value.
for (n = 0; n < 8; n++){
binary[n] = (letter >> n) & 1;}
I keep getting the wrong values because the letter is going in as its own ASCII value rather than the binary version of the hex ASCII value