I'm working with the ssd1306 class which uses the framebuffer class to write text to the display. The framebuffer.text() method appears to only support the ASCII characters between 0x20 and 0x7e (dec. 32 - 126)
Is there any way to add custom characters such as a degree symbol?
FrameBuffer Custom Symbol
Re: FrameBuffer Custom Symbol
@pythoncoder has written a library to use arbitrary fonts. You'll find it in this forum. I assume he will give you a hint, once he reads this post. But just to add one character, this may be a little overdone.
- pythoncoder
- Posts: 5956
- Joined: Fri Jul 18, 2014 8:01 am
- Location: UK
- Contact:
Re: FrameBuffer Custom Symbol
See https://github.com/peterhinch/micropyth ... -to-py.git for a means of converting industry standard font files to Python source (which may be frozen to save RAM). Also https://github.com/peterhinch/micropyth ... /README.md for a way to use these with the SSD1306.
Peter Hinch
Index to my micropython libraries.
Index to my micropython libraries.
Re: FrameBuffer Custom Symbol
That looks great! Thanks for the excellent documentation.