drv_oled_ssd1306
I2C OLED driver for the SSD1306 controller. Sends raw I2C commands for initialization, page addressing, and framebuffer flushing.
Overview Proven
| HAL Type | Display |
| Chip | SSD1306 |
| Interface | I2C |
| Description | Monochrome 1-bit OLED. Kernel converts RGB565 framebuffer data to 1-bit pages before flushing. |
Implementation
| Source | components/kernel_rs/src/drv_oled_ssd1306.rs (871 lines) |
| Wraps | None — manual I2C commands |
| Tests | 22 unit tests |
Devices
Boards that use this driver:
Configuration
Configured via board.json: I2C address (0x3C), pin_sda, pin_scl, optional pin_vext for Heltec V3 external power control.
Known Issues
128x64 only. No 128x32 support currently. Heltec V3 requires pin_vext to power the OLED externally.