How afiskon/stm32-ssd1306 works
stm32-ssd1306 is an STM32 C library for drawing text, bitmaps, and graphics on SSD1306-compatible OLEDs over I2C or four-wire SPI. The principal workflow is application code calling the display API, which updates a framebuffer and transfers it to the display through STM32 HAL. Font data and example drawing routines support that workflow; custom-font guidance is documented separately. Source excerpts show the driver’s rendering and transfer behavior, but not the complete SPI implementation or example firmware wiring.
Main entry points: ssd1306.c Display driver · ssd1306_tests.c Display demonstrations · ssd1306_fonts.h Font definitions · ssd1306_fonts.c Built-in font data
Components 14
Display library
- Display driver
ssd1306/ssd1306.c - Public API and config
ssd1306/ssd1306.h - Config template
ssd1306/ssd1306_conf_template.h - Framebuffer and drawing
ssd1306/ssd1306.c - I2C / SPI transport
ssd1306/ssd1306.c
Fonts and assets
- Font definitions
ssd1306/ssd1306_fonts.h - Built-in font data
ssd1306/ssd1306_fonts.c
Usage examples
- Custom-font tools
examples/custom-fonts - Display demonstrations
ssd1306/ssd1306_tests.c - Demo declarations
ssd1306/ssd1306_tests.h - OLED tester firmware
examples/oled-tester/firmware
Other components
- STM32 application
- STM32 HAL
- Compatible OLED
Connections 13
- STM32 application → Display driver: calls API
README.md - Display driver → Framebuffer and drawing: draws into
ssd1306/ssd1306.c - Display driver → I2C / SPI transport: flushes buffer
ssd1306/ssd1306.c - I2C / SPI transport → STM32 HAL: uses bus calls
ssd1306/ssd1306.c - STM32 HAL → Compatible OLED: transfers display data
- STM32 application → Font definitions: selects font
- Built-in font data → Font definitions: defines fonts
ssd1306/ssd1306_fonts.c - Display demonstrations → Display driver: calls drawing API
ssd1306/ssd1306_tests.c - Display demonstrations → Font definitions: uses fonts
ssd1306/ssd1306_tests.c - Demo declarations → Display demonstrations: declares demos
ssd1306/ssd1306_tests.c - OLED tester firmware → Display demonstrations: runs demos
- Custom-font tools → Built-in font data: produces font data
README.md - Config template → Public API and config: configures options
ssd1306/ssd1306_conf_template.h