When i read data from eeprom using:
EEPROM.read(0x0F);
I get decimal representation of ASCII character (When i have "A" in ASCII i get 65 as output). How i can really fast convert this value to ASCII ?
Maybe there is a trick like Serial.print (data, HEX);
Alternatively, I can use some library.
This is in ASCII, that is what ASCII is. It is a number that stands for a alphanumeric character.
Well that just gives you the same number in hexadecimal form, it is still the same number.
What exactly are you expecting?
This will print an 'A':
Serial.print ((char) data);
Is that what you want?
Hi @thorourd
test this way;
result = 65;
Serial.write (result);
print A.
RV mineirin
drmpf
July 10, 2021, 12:07am
5
thorourd:
EEPROM.read(0x0F);
char c = (char) EEPROM.read(0x0F);
Now when you do
Serial.print(c);
you will get the ASCII char
system
Closed
November 7, 2021, 12:07am
6
This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.