ThingPulse / esp8266-oled-ssd1306

Driver for the SSD1306 and SH1106 based 128x64, 128x32, 64x48 pixel OLED display running on ESP8266/ESP32
https://thingpulse.com
Other
2k stars 638 forks source link

Degree symbol is not shown #230

Closed WilkoV closed 4 years ago

WilkoV commented 5 years ago

The library does not show the degree symbol (°) if I add it to a String or char array. Is there a way to show the symbol?)

ITEnDev commented 5 years ago

Hi. Try to use the following: display.drawString(0, 15, "H: " + String(temperature0ValueToDisplay) + "/" + String(temperature1ValueToDisplay) + " °C"); It is works for me. In this example I used two variables (temperature0ValueToDisplay and temperature1ValueToDisplay) and two fixed tag ("/" and " °C") to displaying in a line on the display.

I hope this will help.

stale[bot] commented 4 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.