The SSD1306 is a popular controller used in OLED (Organic Light Emitting Diode) displays, most commonly found in small monochrome displays like 128x64 or 128x32 resolution screens. These displays are perfect for small embedded projects like IoT dashboards, sensor readouts, clocks, etc.
SSD1306 is a display driver IC developed by Solomon Systech.
It controls monochrome OLED panels using I²C or SPI communication.
Often embedded in 0.96-inch or 1.3-inch OLED displays.
| Feature | Description |
|---|---|
| Resolution | 128x64 or 128x32 pixels |
| Display Type | Monochrome OLED (white/blue/yellow) |
| Interface | I²C (2-wire) or SPI (4-wire) |
| Voltage | 3.3V to 5V (check module) |
| Power Consumption | Very low (great for battery use) |
| Color | 1-bit (pixel on or off) |
| Size (Popular) | 0.96" diagonal |
The SSD1306 manages display memory and drives OLED pixels directly.
It includes a built-in graphics RAM (GDDRAM).
Each pixel is controlled by setting bits in this memory.
The controller handles:
Display refreshing
Contrast adjustment
Scrolling (horizontal and vertical)
Power-saving modes
Assuming you’re using an I²C SSD1306 (4 pins):
| SSD1306 Pin | ESP32 Pin | Description |
|---|---|---|
| VCC | 3.3V or 5V | Power supply |
| GND | GND | Ground |
| SDA | GPIO 21 | I²C data |
| SCL | GPIO 22 | I²C clock |
π Some displays use SPI (7 pins). Let me know if you're using SPI instead.
Install via Library Manager:
Adafruit SSD1306
Adafruit GFX Library