rm-hull / luma.examples

Companion repo for running examples against the luma.oled, luma.lcd, luma.led_matrix and luma.emulator display drivers.
MIT License
370 stars 144 forks source link

Degree symbol for SSD1331 #90

Closed Flash1705 closed 5 years ago

Flash1705 commented 5 years ago

Hello, first of all thanks for the great library and examples.

I have a Adafruit 0.96" mini Color OLED display. https://learn.adafruit.com/096-mini-color-oled/overview

How can I display a degree symbol on a SSD1331 OLED display using Python.

Any insight is appreciated.

Flash1705 commented 5 years ago

Hello

I solved my problem as follows.

draw.text((x, y), now_temp + chr(176) + 'C', font=var fill="green")
rm-hull commented 5 years ago

Yep, that was more-or-less what I was going to suggest. Glad you got it sorted.