A Python tool to quickly prototype Adafruit GFX displays in Python
Article excerpt
pydafruit_gfx is a Python tool to quickly prototype Adafruit GFX displays in Python by hackster.io user mars91. I find it frustrating when building a display (with Arduino + hardware), you have to: flash the board, a cable can go bad, a wire pops loose, or the board can decides to brick itself. I end up […]
pydafruit_gfx is a Python tool to quickly prototype Adafruit GFX displays in Python by hackster.io user mars91.
I find it frustrating when building a display (with Arduino + hardware), you have to: flash the board, a cable can go bad, a wire pops loose, or the board can decides to brick itself. I end up spending 10, 20 seconds (if I’m lucky) just to see if moving a font three pixels to the left “feels right”.
I’ve always wanted a faster way to prototype display layouts and graphics, so I built this Python tool.
Instead of mimicking Adafruit’s GFX code, why not just use it.
Pydafruit GFX uses:
Adafruit GFX graphics code
SDL (a display window that works on macOS, Linux, and Windows)
pybind11
Using Adafruit’s actual GFX code is great because there’s no uncertainty. Did the font copy correctly? Is that function actually implemented correctly? So instead, just use their code. Their code is the source of truth.
Check out the code on GitHub and more info on hackster.io.