FrameBuffer bitmaps of big LED-style numbers and weather icons #11696
DavesCodeMusings
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I like bit maps and I cannot lie. --Sir Mix-a-Lot
I was playing around with MicroPython FrameBuffer to draw bitmaps on an ssd1306 recently and found that it's pretty easy to reuse some of the bitmaps I had created for an old Arduino C++ weather station project. (The trick is using the MONO_HLSB format so they orient correctly.)
If anyone is interested, I have various seven-segment style numbers as well as weather symbols in the GitHub repository. There's also a web-based tool that lets you create whatever you want in an 8x8 up to 32x32 grid.
Below is an example of using FrameBuffer to display a 16x16 pixel black hole event horizon. The bytearray contents were lifted from my C-style array for weather icons and put inside a Python bufferarray. The code borrows heavily from an old MicroPython Forum discussion
I thought it was more fun to have a display with big, bold, retro-looking LED style numbers than the usual tiny text, so I thought I'd share.
Beta Was this translation helpful? Give feedback.
All reactions