Quantcast
Channel: MEL PICBASIC Forum
Viewing all articles
Browse latest Browse all 4793

Hex value of ASCII character back to text.

$
0
0
I am trying to take the hex value of an ASCII character stored in EEPROM , convert it back to a text character and send it to a device on the PIC serial port using serout or serout2.

So lets say I have 31 stored in EEPROM location 00, this is the equivalent of "1" as text. How do I turn 0x31 in to "1"?

Thanks.

Viewing all articles
Browse latest Browse all 4793