Page 1 of 1

ESP32 TTGO T1 character '°'

Posted: Thu Aug 26, 2021 10:47 am
by mormic
Hello
I can't display the character temperature '°' because it is not in the standard font.
Is it possible to modify a not used character in this font (for example '!') to replace it with the temperature char '°' ?
If you could help me.
Thanks

Mormic

Re: ESP32 TTGO T1 character '°'

Posted: Fri Aug 27, 2021 4:19 pm
by mormic
Hi,
I have found the solution to this problem:

Code: Select all

tft.drawingChar((char)167);
or with Strings:

Code: Select all

tft.drawingString(yourTemperature + String((char)167));
display for example: 15.26°