SSD1306Ascii icon indicating copy to clipboard operation
SSD1306Ascii copied to clipboard

How to print "°C" on OLED?

Open mianqi2016 opened this issue 8 months ago • 3 comments

How to print the Celsius degree sign?

mianqi2016 avatar Mar 22 '25 02:03 mianqi2016

Most fonts only support ASCII and don't have the degree symbol. I think the Adafruit5x7.h font may have it if you set ADAFRUIT_ASCII96 to zero.

Also the last character in System5x7.h is the degree symbol.

Other users have created fonts with special symbols using openGLCDFontCreator.

greiman avatar Mar 22 '25 12:03 greiman

the last character in System5x7.h is the degree symbol.

How to use it? These code didn't work: oled.setFont(System5x7); oled.println("\127C");

mianqi2016 avatar Mar 25 '25 00:03 mianqi2016

See this or this.

greiman avatar Mar 25 '25 11:03 greiman