peterhinch / micropython-samples

Assorted code ideas, unofficial MP FAQ, plus index to my other repositories.
MIT License
459 stars 92 forks source link

Degrees? #1

Closed pedrofelipest closed 6 years ago

pedrofelipest commented 6 years ago

How to use symbol degrees ° in ssd1306?

peterhinch commented 6 years ago

The ° symbol has value 176 (ord('°')) so you need to use font_to_py.py to generate the necessary extended ASCII (the -l argument). See the docs. You should then be able to print the character in the normal way.

pedrofelipest commented 6 years ago

Thanks @peterhinch, It worked.