Quick answer: Our three I2C OLED display modules wire the same way: 4 pins, 3.3V or 5V, address 0x3C. The controller chip differs. The 0.96 inch (128×64) and 0.91 inch (128×32) use SSD1306, the 1.3 inch (128×64) uses SH1106 and needs a different line of code.
- Wire by the labels printed on the board. Uno: GND to GND, VCC to 5V, SCL to A5, SDA to A4. ESP32: GND to GND, VCC to 3V3, SCL to D22, SDA to D21. Super Mini: the same, but SCL to 7, SDA to 6, and add
Wire.begin(6, 7);. - Install the U8g2 library and keep the constructor line for your screen: SSD1306 128X64 (0.96 inch), SH1106 128X64 (1.3 inch) or SSD1306 128X32 (0.91 inch).
- Still black? An OLED has no backlight and stays dark until a sketch starts it. Run an I2C scanner: if it finds 0x3C, the wiring is fine and the fault is in the code.
- Speckles or a noisy strip along one edge of a 1.3 inch means SSD1306 code on an SH1106 screen. Change the constructor line. The wiring is fine.
0.91, 0.96 or 1.3 inch: which OLED to buy
The 0.91, 0.96 and 1.3 inch OLED display modules are one kind of screen in three sizes, each with four pins: two for power, two for I2C.
| 0.91 inch | 0.96 inch | 1.3 inch | |
|---|---|---|---|
| Pixels | 128 x 32 | 128 x 64 | 128 x 64 |
| Controller | SSD1306 | SSD1306 | SH1106 |
| Pixel colour (fixed in the glass, code cannot change it) | Blue | Blue or white | Blue or white |
| Pin labels, left to right with the screen facing you | GND VCC SCK SDA | GND VCC SCL SDA | GND VCC SCL SDA |
| 4-pin header | Loose in the bag: four joints to solder | Already soldered | Already soldered |
| Mounting holes | None | Four, one per corner | Four, one per corner |
| I2C address | 0x3C | 0x3C (solder pads on the back can change it to 0x3D, so two screens can share one bus) | 0x3C (solder pads on the back can change it to 0x3D, so two screens can share one bus) |
| Pick it for | A thin strip, about 37 x 12 mm, with half the rows. A line or two of status in a tight case | A first OLED. Our project guides and most example sketches online use it | The biggest of the three. Same picture as the 0.96 inch, easier to read from further away |
One customer asked us: “Bang, 1.3′ dgn 0.96′ oled ni sama ke function dua”. Almost. Both have 128 x 64 pixels, so the drawing code is the same, but the 1.3 inch needs its own constructor line because its chip (SH1106) differs (see below). The 1.3 inch glass is bigger. The inch figure is its diagonal, and 1.3 ÷ 0.96 is about 1.35, so the same text comes out about a third taller.
Parts you need
Parts for a first OLED build (Uno, no soldering)
Parts list
Pick one screen. The 1.3 inch is the bigger 128x64 screen and needs the SH1106 code line. White is the same module with white pixels. The 0.91 inch strip comes with its 4-pin header loose, so it needs four solder joints. For an ESP32, take the board, the USB Type-C data cable and the female-to-female jumpers.
| Board | What the OLED’s pins meet | Jumpers | Also needs |
|---|---|---|---|
| Arduino Uno | Sockets | Male-to-female | Nothing. Its USB cable is in the box |
| ESP32 DevKit, 30-pin | Pins, already soldered | Female-to-female | USB-A to Type-C data cable |
| ESP32-C3 Super Mini | Two header strips that come loose. Solder them first | Female-to-female. Or push it and the OLED into a breadboard and link the rows with male-to-male | USB-A to Type-C data cable |
Each jumper end must be the opposite of what it plugs into (see our jumper wire guide).
SSD1306 vs SH1106: what changes in your code
SSD1306 and SH1106 are the controller chips that drive the OLED’s pixels. The chip is bonded inside the glass, so the board carries no marking to read, and two customers asked us “does this use ssd1306 controller?”. The 0.96 and 0.91 inch do. The 1.3 inch uses SH1106.
Each chip keeps the picture in its own memory, one bit per pixel, and lights the glass from it. The SSD1306’s memory is 128 columns wide, the same as the glass. The SH1106’s is 132 columns wide, and the 128-column glass sits over the middle with two spare columns on each side.
SSD1306 code writes columns 0 to 127. On an SH1106 the picture lands two columns off, and the columns nobody wrote keep their random power-up bits: a noisy strip along one edge. The Adafruit SSD1306 library also sends the picture as one stream and relies on the chip to step down to the next band of rows. The SH1106 stays on one band until told to move, so most of the glass keeps its random bits: speckles.
One buyer of our 1.3 inch blue screen on an ESP32 saw this: noise and a dark band at one edge. An SH1106 driver cleared it. The fix is one line that names the chip:
| Screen | U8g2 constructor (used in this guide: one library covers both chips) | Adafruit route instead |
|---|---|---|
| 0.96 inch | U8G2_SSD1306_128X64_NONAME_1_HW_I2C |
Adafruit SSD1306 + Adafruit GFX: Adafruit_SSD1306 display(128, 64, &Wire, -1), then display.begin(SSD1306_SWITCHCAPVCC, 0x3C) |
| 1.3 inch | U8G2_SH1106_128X64_NONAME_1_HW_I2C |
Adafruit SH110X + Adafruit GFX: Adafruit_SH1106G display(128, 64, &Wire, -1), then display.begin(0x3C, true) |
| 0.91 inch | U8G2_SSD1306_128X32_UNIVISION_1_HW_I2C |
Adafruit SSD1306 + Adafruit GFX: Adafruit_SSD1306 display(128, 32, &Wire, -1), then display.begin(SSD1306_SWITCHCAPVCC, 0x3C) |

Wiring: the 4 pins on an Uno, ESP32 and ESP32-C3 Super Mini
Unplug USB, then wire the OLED module by its printed labels, never by position. Our modules read GND, VCC, SCL, SDA from the left with the screen facing you, and many wiring pictures online show VCC first. Copy one of those pin for pin and power goes in backwards, which can kill the module. Peel the protective film from its tab, never from the orange ribbon end: a torn ribbon cannot be fixed.
| OLED pin | Arduino Uno | ESP32 DevKit (30-pin) | ESP32-C3 Super Mini |
|---|---|---|---|
| GND | GND | GND | G |
| VCC | 5V | 3V3 | 3.3 |
| SCL, the I2C clock (printed SCK on the 0.91 inch) | A5, or the pin marked SCL beside AREF | D22 | 7 |
| SDA, the I2C data | A4, or the pin marked SDA beside AREF | D21 | 6 |

On a Super Mini, add one line. The ESP32-C3’s default I2C pins are 8 and 9. They work, but this board also wires 8 to its LED and 9 to its BOOT button, so the LED flickers with the data and pressing BOOT jams the clock line. Wire.begin(6, 7); moves SDA to 6 and SCL to 7, two free pins (see our Super Mini guide).
Step 1: Find the address with an I2C scanner
An I2C scanner calls every address on the bus and prints the ones that answer. Upload it and open Serial Monitor at 115200 baud.
// I2C scanner: prints the address of every device that answers on the bus.
#include <Wire.h>
void setup() {
Serial.begin(115200);
Wire.begin(); // Uno: A4 and A5. ESP32 DevKit: D21 and D22.
// Wire.begin(6, 7); // ESP32-C3 Super Mini: use this line instead (SDA = 6, SCL = 7)
}
void loop() {
byte found = 0;
Serial.println("Scanning...");
for (byte addr = 1; addr < 127; addr++) {
Wire.beginTransmission(addr);
if (Wire.endTransmission() == 0) { // 0 = a device answered at this address
Serial.print("Found device at 0x");
if (addr < 16) Serial.print("0");
Serial.println(addr, HEX);
found++;
}
}
if (found == 0) Serial.println("No I2C device found. Check the four wires.");
delay(3000);
}
You should see Found device at 0x3C. The OLED answers only when power, ground and both signal wires are right, so that one line proves all four wires. It cannot name the controller, because SSD1306 and SH1106 answer at the same two addresses. Step 2 settles that.
The back of the 0.96 and 1.3 inch boards says 0x78 and 0x7A. Those are the same addresses in 8-bit form. On the wire, the 7-bit address is followed by one read-or-write bit. Add that bit as a 0 and the number doubles: 0x3C (60) becomes 0x78 (120), and 0x3D becomes 0x7A. The tiny resistor sits on the 0x78 side, so the module answers at 0x3C. The scanner and the Adafruit libraries use the 7-bit form, U8g2’s setI2CAddress() the 8-bit form.

Step 2: Show your first text with U8g2
Install U8g2 from the Arduino IDE (Sketch, Include Library, Manage Libraries, search U8g2, the one by oliver). Then set the constructor line for your screen and, on a Super Mini only, the Wire.begin(6, 7); line.
// First text on an I2C OLED with the U8g2 library.
// Runs on an Arduino Uno, an ESP32 DevKit and an ESP32-C3 Super Mini.
#include <Wire.h>
#include <U8g2lib.h>
// Keep ONE of these three lines and put // in front of the other two.
U8G2_SSD1306_128X64_NONAME_1_HW_I2C oled(U8G2_R0, U8X8_PIN_NONE); // 0.96 inch, 128x64 (SSD1306)
// U8G2_SH1106_128X64_NONAME_1_HW_I2C oled(U8G2_R0, U8X8_PIN_NONE); // 1.3 inch, 128x64 (SH1106)
// U8G2_SSD1306_128X32_UNIVISION_1_HW_I2C oled(U8G2_R0, U8X8_PIN_NONE); // 0.91 inch, 128x32 (SSD1306)
void setup() {
// Wire.begin(6, 7); // ESP32-C3 Super Mini only: SDA = 6, SCL = 7
// oled.setI2CAddress(0x7A); // only if the scanner found 0x3D (0x3D x 2 = 0x7A)
oled.begin(); // starts the controller and clears the screen
oled.setFont(u8g2_font_ncenB08_tr);
oled.firstPage();
do { // everything you draw goes between do and while
oled.drawStr(8, 20, "Hello, MakerHub!"); // x = 8, y = 20 (y is the bottom of the letters)
oled.drawFrame(0, 0, oled.getDisplayWidth(), oled.getDisplayHeight()); // border on all four edges
} while (oled.nextPage());
}
void loop() {}
The screen should show “Hello, MakerHub!” inside a thin border. The border is the controller test: with the right line it is clean and touches all four edges. A noisy strip or speckles means the other chip, so swap the line and upload again.
The 1 in the constructor is page mode. A full 128 x 64 picture is 8,192 bits, or 1,024 bytes, half of an Uno’s 2,048 bytes of RAM. U8g2 instead builds it one 8-row strip (128 bytes) at a time, and the do/while loop reruns your drawing lines for each strip. On an Uno this sketch uses 676 bytes of RAM.
Next project: our DHT11 temperature monitor or rotary encoder menu. Both use the Adafruit route on a 0.96 inch. On a 1.3 inch, swap in the SH110X library, constructor and begin() from the table above, and SH110X_WHITE for SSD1306_WHITE.
Why is my OLED blank or showing noise?
A blank or noisy OLED comes down to one of these:
| What you see | Why | Fix |
|---|---|---|
| Black with power connected and no sketch uploaded | Normal. Each OLED pixel makes its own light, so there is no backlight to glow. Both controllers also start up with the display switched off, and only the sketch’s begin() turns it on |
Upload the Step 2 sketch |
| Scanner says no I2C device found | A jumper is loose or on the wrong pin, or SDA and SCL are swapped | Push each jumper home and read the label at both ends of every wire |
| The same, on a Super Mini | The scanner is still on the default pins 8 and 9 | Use the Wire.begin(6, 7); line instead of Wire.begin(); |
| Super Mini: the scanner finds 0x3C but the Step 2 sketch shows nothing | The Wire.begin(6, 7); line is still commented out in the Step 2 sketch, so U8g2 starts the bus on the default pins 8 and 9 |
Remove the // in front of it there too. Every sketch needs its own copy of that line |
| Serial Monitor stays empty on a Super Mini | Serial output is going to the TX and RX pins, not to USB | Choose the board Nologo ESP32C3 Super Mini, or set USB CDC On Boot to Enabled |
| Scanner finds 0x3D | The address resistor is on the 0x7A side | U8g2: remove the // in front of oled.setI2CAddress(0x7A);. Adafruit SSD1306: display.begin(SSD1306_SWITCHCAPVCC, 0x3D). Adafruit SH110X: display.begin(0x3D, true) |
| Speckles, a noisy strip along one edge, or a picture pushed sideways | The constructor names the wrong controller | Keep the other 128X64 line |
| 0.91 inch: the picture looks striped or cut off | A 128X64 line is driving a glass with 32 rows | Keep the 128X32 line |
| Adafruit SSD1306 sketch on a 0.96 inch: scanner finds 0x3C but the screen stays black | The library’s own 128×64 I2C example sets SCREEN_ADDRESS to 0x3D, and begin() with no address also picks 0x3D for a 64-row screen. Our modules answer at 0x3C |
Change the address to 0x3C |
| Uno with the Adafruit SSD1306 library: scanner finds 0x3C but the screen stays black | That library asks for its 1,024-byte picture buffer when begin() runs. If the sketch has already used that RAM, begin() returns false and nothing is drawn |
Free some RAM, or use U8g2 in page mode as in Step 2 |
| Compile error: no matching function for call to ‘TwoWire::begin(int, int)’ | Wire.begin(6, 7); is active on an Uno. The Uno’s I2C pins are fixed at A4 and A5, so its Wire.begin() takes no pin numbers |
Put the // back in front of it |
| Scanner finds nothing and all four wires are right | The orange flex ribbon is torn or creased. The controller sits inside the glass and the ribbon is its only link to the board | Check the ribbon where it folds under the board. A torn ribbon cannot be repaired, so the module needs replacing |
One customer wrote “I bought the 0.96′ OLED from you and tried connecting with ESP32 supermini C3 … nothing is showing up”. The cause was the orange flex ribbon, torn while peeling off the protective film.
FAQ
Does the 1.3 inch OLED use SSD1306 or SH1106?
SH1106. Its 132-column memory makes SSD1306 code leave a noisy strip along one edge. Use U8g2’s SH1106 128X64 constructor or the Adafruit SH110X library. Our 0.96 and 0.91 inch modules use SSD1306.
Which library do I use for a 0.96 inch OLED?
U8g2 with the SSD1306 128X64 constructor, or Adafruit SSD1306 with Adafruit GFX.
Can I power the OLED from an ESP32’s 3.3V pin?
Yes. Connect VCC to 3V3. Both controllers are 3.3V chips (logic supply 1.65V to 3.3V on the SSD1306, 1.65V to 3.5V on the SH1106), so the ESP32’s 3V3 pin and signals suit all three screens directly. The module’s small regulator is there for the Uno’s 5V.
Which OLED works with a Raspberry Pi Pico?
Any of the three, on the Pico’s 3V3 pin. Our RP2040 guide wires a 0.96 inch OLED to GP4 and GP5.
Last updated November 2026. Stuck? Chat with us on WhatsApp.



0.96β OLED Display Module Blue White Screen I2C IIC Serial 128X64 LCD Display Board - 0.96' OLED BLUE
Arduino Uno Compatible SMD UNO R3 with Type B Cable - ATMEGA328P with CH340G-Microcontroller Project
40pcs Dupont Wire 10cm 20cm 30cm for Breadboard DIY Experiment Jumper Wire Breadboard wire - DUPONT WIRE M-F 20CM
1.3' OLED Display Module 1.3 inch White/ Blue OLED Display IIC I2C Communication For Arduino IOT - 1.3' OLED DISPLAY (WHITE)
1.3' OLED Display Module 1.3 inch White/ Blue OLED Display IIC I2C Communication For Arduino IOT - 1.3' OLED DISPLAY (BLUE)
0.96β OLED Display Module Blue White Screen I2C IIC Serial 128X64 LCD Display Board - 0.96' OLED WHITE
0.91' OLED Display Module I2C Communication 3.3V 5V For Arduino IOT Application
NodeMCU ESP32 Wi-Fi + Bluetooth Development Board CH340/CP2012 - For IOT Project - ESP-32 (CH340)
Data Cable Type-A Type-C MicroUSB Type-B 0.5m 1m 30cm 0.3m 100cm Data Transfer Upload Code - TYPE-A TO TYPE-C CABLE (0.5M)
40pcs Dupont Wire 10cm 20cm 30cm for Breadboard DIY Experiment Jumper Wire Breadboard wire - DUPONT WIRE F-F 20CM