0.96" OLED SSD1306 I2C Wiring, Pin-Order Trap & 0x3C/0x3D Address Lab
A 0.96" SSD1306 OLED display needs only 4 wires (VCC, GND, SCL, SDA) over I2C — yet two classic traps catch makers every day: some modules swap Pin 1 and Pin 2 (GND-VCC vs VCC-GND), and code configured for 0x3D stays completely blank on a 0x3C display!
Standard I2C pins: ESP32 uses GPIO21 (SDA) / GPIO22 (SCL); Arduino Uno uses A4 (SDA) / A5 (SCL); Raspberry Pi uses Pin 3 (SDA) / Pin 5 (SCL).
- Always read the white silkscreen on the PCB header before plugging in: older blue modules start with GND-VCC, while newer ones often start with VCC-GND!
- Default I2C Address: 95% of 128×64 SSD1306 displays ship with the 0 Ω jumper soldered on 0x3C (7-bit address; printed as 0x78 in 8-bit form on the back).
| Symbol | Component | Real-World Engineering Tip |
|---|---|---|
| DISP1 | SSD1306 128×64 I2C OLED Module | Run an I2C Scanner sketch first whenever an OLED stays blank — it immediately prints 0x3C or 0x3D. |
Real-World Bench Scenario: Dual OLED Displays on One I2C Bus: Move the tiny 0 Ω resistor on the back of the second OLED from 0x78 to 0x7A so one responds to 0x3C and the second to 0x3D on the exact same 2 wires!
Bench Challenge: Test mismatched I2C address (0x3D vs 0x3C) and the swapped VCC/GND pin-order trap, then restore clean 0x3C communication.