ESP32 TTGO T1 character '°'

mormic
Posts: 4
Joined: Sat Aug 14, 2021 9:59 am

ESP32 TTGO T1 character '°'

Postby mormic » Thu Aug 26, 2021 10:47 am

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

mormic
Posts: 4
Joined: Sat Aug 14, 2021 9:59 am

Re: ESP32 TTGO T1 character '°'

Postby mormic » Fri Aug 27, 2021 4:19 pm

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°

Who is online

Users browsing this forum: No registered users and 91 guests