All wiring guides

Free wiring guides

Wire the SSD1306 OLED 0.91 in screen to the ESP32-S3

OLED screen, 0.91 in, SSD1306, 128×32, I2C. A thin strip of screen for one or two lines.

When buying: The 4-pin I2C version, 128×32.

Which pin goes where

On the partOn the ESP32-S3
GNDGND
VCC3V3
SCLGPIO 9
SDAGPIO 8

Wire it with the USB cable unplugged. Follow the names printed on your own part: makers sometimes reorder the pins.

In 3D

Example sketch

// OLED screen, 0.91 in, SSD1306, 128×32, I2C
// on the ESP32-S3-DevKitC-1 (N8R2 or N16R8)
// https://stem.manusignal.com/en/parts/ssd1306-oled-0-91-inch-esp32-s3
#include <Wire.h>
#include <Adafruit_GFX.h>
#include <Adafruit_SSD1306.h>

const int PIN_SDA = 8;
const int PIN_SCL = 9;

Adafruit_SSD1306 oled(128, 32, &Wire, -1);

void setup() {
  Wire.begin(PIN_SDA, PIN_SCL);
  oled.begin(SSD1306_SWITCHCAPVCC, 0x3C);
  oled.clearDisplay();
  oled.setTextColor(SSD1306_WHITE);
  oled.setTextSize(2);
  oled.setCursor(0, 8);
  oled.print("It works");
  oled.display();
}

void loop() {
  delay(1000);
}
  • Tools > Board > ESP32S3 Dev Module, then Tools > Port and choose the board's port.
  • Adafruit GFX Library: install it from Sketch > Include Library > Manage Libraries.
  • Adafruit SSD1306: install it from Sketch > Include Library > Manage Libraries.

This sketch is compiled for the board before the page is published. It has not been run on real hardware by us.

What you should see

The screen shows “It works”.

If it does not work

The OLED shows nothing.
SDA and SCL are probably swapped. If they are right, your module may use address 0x3D: change 0x3C in the sketch.

The same part on the ESP32-C3

Build something with it

These Build Packs use this part on this board, with the same pins.

More parts on the ESP32-S3