How thingpulse/esp8266-oled-ssd1306 works
This is an Arduino/ESP8266/ESP32 and mbed OLED driver for SSD1306 and SH1106 displays. An application chooses a display adapter, draws text and graphics into the shared display buffer, then transfers the rendered content over I2C or SPI to the physical OLED. The UI helper adds callback-driven frames, timed transitions, animations, and indicators. The graph preserves the documented transport/controller options; relationships for adapters whose implementations were not excerpted are shown as unverified where appropriate.
Main entry points: OLEDDisplay.h Display API · SSD1306Wire.h SSD1306 Wire · SH1106Wire.h SH1106 Wire · OLEDDisplayUi.cpp Frame UI
Components 16
Rendering
- Display Renderer
src/OLEDDisplay.cpp - Display API
src/OLEDDisplay.h - Built-in Fonts
src/OLEDDisplayFonts.h
I2C Adapters
- SSD1306 Wire
src/SSD1306Wire.h - SH1106 Wire
src/SH1106Wire.h - SSD1306 Brzo
src/SSD1306Brzo.h - SH1106 Brzo
src/SH1106Brzo.h - SSD1306 mbed I2C
src/SSD1306I2C.h - SSD1306 Selector
src/SSD1306.h - SH1106 Selector
src/SH1106.h
Other Adapters
- SSD1306 SPI
src/SSD1306Spi.h - SH1106 SPI
src/SH1106Spi.h
Other components
- Application
- OLED Display
Connections 28
- Application → SSD1306 Wire: selects I2C
README.md - Application → SH1106 Wire: selects I2C
README.md - Application → SSD1306 Brzo: selects Brzo I2C
README.md - Application → SH1106 Brzo: selects Brzo I2C
README.md - Application → SSD1306 SPI: selects SPI
README.md - Application → SH1106 SPI: selects SPI
README.md - Application → SSD1306 mbed I2C: selects mbed I2C
README.md - Application → Frame UI: configures frames
README.md - Frame UI → Display Renderer: initializes display
src/OLEDDisplayUi.cpp - Frame UI → Display Renderer: draws frames
src/OLEDDisplayUi.cpp - Display API → Built-in Fonts: includes font data
src/OLEDDisplay.h - SSD1306 Wire → Display API: extends renderer API
src/SSD1306Wire.h - SH1106 Wire → Display API: extends renderer API
src/SH1106Wire.h - SSD1306 Brzo → Display API: extends renderer API
src/SSD1306Brzo.h - SH1106 Brzo → Display API: extends renderer API
src/SH1106Brzo.h - SSD1306 mbed I2C → Display API: extends renderer API
src/SSD1306I2C.h - SSD1306 SPI → Display API: extends renderer API
src/SSD1306Spi.h - SH1106 SPI → Display API: extends renderer API
src/SH1106Spi.h - SSD1306 Selector → SSD1306 Wire: selects adapter
src/SSD1306.h - SH1106 Selector → SH1106 Wire: selects adapter
src/SH1106.h - Display Renderer → OLED Display: renders through adapter
- SSD1306 Wire → OLED Display: transfers over I2C
src/SSD1306Wire.h - SH1106 Wire → OLED Display: transfers over I2C
src/SH1106Wire.h - SSD1306 Brzo → OLED Display: transfers over Brzo
src/SSD1306Brzo.h - SH1106 Brzo → OLED Display: transfers over Brzo
- SSD1306 SPI → OLED Display: transfers over SPI
src/SSD1306Spi.h - SH1106 SPI → OLED Display: transfers over SPI
src/SH1106Spi.h - SSD1306 mbed I2C → OLED Display: transfers over I2C