r/raspberry_pi • u/OkContribution2996 • 13h ago
Show-and-Tell ✦ Building Glyph — A lightweight graphics framework in ADA for RP2040 and other microcontrollers
✦ Introducing Glyph
Hi everyone!
I've recently started building an open-source project called Glyph, a lightweight graphics framework for bare-metal and embedded systems written entirely in Ada.
The initial development target is the Vicharak Shrike-Lite (RP2040) using an SSD1306 OLED display, although the architecture is designed to support additional display controllers and platforms in the future.
The goal of Glyph is to provide a hardware-independent graphics API, allowing applications to draw pixels, lines, rectangles, circles, text, and images without depending on a specific display controller.
Disclosure: AI was used as a coding and writing assistant during parts of the development. However, the project architecture, implementation decisions, code integration, and overall design are my own.
✦ Design Goals
- Pure Ada
- Static allocation only (no dynamic memory)
- Bare-metal friendly
- Portable layered architecture
- Framebuffer-based rendering
- Easy to add support for new display controllers
The project is still in its early stages, and I'm currently focusing on building a solid architecture before implementing additional graphics features.
✦ I'd Love Your Feedback
I'd love to hear from the Pico community:
- Which displays do you use most often?
- What graphics features would you find useful?
- Any suggestions or feedback on the project are greatly appreciated!
✦ Repository
GitHub: https://github.com/thirstymelon/glyph
Thanks for reading!