Explain Like I'm 12
This little screen is like a mini TV for your ESP32. You can show temperature, smiley faces, or messages — all on a glowing blue display smaller than your thumb.
Technical Specifications
Arduino library: Adafruit SSD1306 + Adafruit GFX
- Resolution: 128×64 pixels
- Interface: I2C
- Operating voltage: 3.3 V to 5 V
- Blue or white monochrome
Pinout
- VCC → 3.3 V
- GND → GND
- SDA → GPIO21
- SCL → GPIO22
Wiring
Connect each pin as shown in the pinout section above.
Wiring Diagram
Wiring diagram for SSD1306 OLED Display
Code Example
Copy into Arduino IDE. Install the library listed above first.
example.ino
#include <Wire.h>
#include <Adafruit_GFX.h>
#include <Adafruit_SSD1306.h>
Adafruit_SSD1306 display(128, 64, &Wire, -1);
void setup() {
display.begin(SSD1306_SWITCHCAPVCC, 0x3C);
display.clearDisplay();
display.setTextSize(2);
display.setTextColor(SSD1306_WHITE);
display.setCursor(0, 20);
display.println("Hello!");
display.display();
}
void loop() {}
Expected Output
OLED shows "Hello!" in large white text.
Related Projects
FAQ
Check I2C address (usually 0x3C) and SDA/SCL wiring.
Downloads
Official manufacturer PDF for teachers and advanced builders.
Download Datasheet (PDF)