OLED
Interfacing SH1106 13 OLED with Arduino Uno
What is the SH1106 13?
The SH1106 looks nearly identical to the SSD1306 — same 1.3-inch monochrome OLED form factor, same 4-pin I2C breakout, same 0x3C default address — but it's a different controller chip with a different internal frame buffer, and code written for one will not display correctly on the other. The SH1106's buffer is 132 pixels wide even though only 128 are visible, so the panel is offset by 2 pixels compared to the SSD1306, and libraries need to account for that offset explicitly.
In practice this means one thing matters more than anything else when working with this display: use a library that explicitly supports SH1106 (Adafruit_SH110X, or U8g2 with the correct constructor), not the Adafruit_SSD1306 library. Swap the constructor and everything else — drawing calls, fonts, buffer-and-flush pattern — works the same way as the SSD1306 you may already be used to.
Specifications
| Display | 128 x 64 visible pixels, monochrome OLED (132-pixel-wide internal buffer) |
| Operating voltage | 3.3V - 5V (most breakout modules have an onboard regulator) |
| Interface | I2C (this module); SPI variants also exist |
| I2C address | 0x3C default on most modules — scan to confirm, some ship at 0x3D |
| Driver chip | SH1106 — NOT interchangeable in software with the visually similar SSD1306 |
| Known quirk | 132px internal buffer vs 128px visible — needs a 2px horizontal offset that SH1106-specific libraries handle automatically |
SH1106 13 Pinout
| Pin | Name | Description |
|---|---|---|
| 1 | GND | Ground |
| 2 | VCC | Power, 3.3V-5V DC depending on the module's onboard regulator |
| 3 | SCL | I2C clock line |
| 4 | SDA | I2C data line |
The pinout is electrically identical to the SSD1306 module, so wiring mistakes aren't the usual failure mode here — a garbled or shifted image with correct wiring is almost always a library mismatch, not a hardware fault. Always confirm with Adafruit_SH110X or a U8g2 SH1106 constructor before assuming a display is faulty.
Setting Up SH1106 13 with Arduino Uno
Library
Adafruit SH110X by Adafruit
Library Manager → search "Adafruit SH110X" → install (also installs Adafruit GFX as a dependency)
Wiring
| Component pin | Arduino Uno pin | Note |
|---|---|---|
| GND | GND | — |
| VCC | 5V | — |
| SCL | A5 | Hardware I2C clock |
| SDA | A4 | Hardware I2C data |
Example code
Do not use the Adafruit_SSD1306 library with this display — same-looking OLED, different controller and pixel buffer offset. Use Adafruit_SH110X or U8g2 instead.
Related Components
Related Guides & Projects

Arduino Uno R3 Pinout: Every Pin Explained (Digital, Analog, PWM, Power)
Complete Arduino Uno R3 pinout reference: all 14 digital pins, 6 analog inputs, PWM, UART, SPI, I2C, AREF, and power rails explained with wiring tips and common mistakes.

Ultimate Arduino Mega 2560 Pinout Guide: Complete Power & I/O Reference
Master the Arduino Mega 2560 pinout. Detailed reference for all 54 digital pins, 16 analog inputs, PWM, UARTs, SPI, I2C, interrupts, and power. Includes a printable table and practical wiring tips.

Interfacing HC-SR04 Ultrasonic Sensor with Arduino
Measure distance accurately using ultrasonic sound waves and an Arduino Uno — no complex math, no expensive hardware.
HC‑SR04 Ultrasound Distance Measurement with Arduino – Parking Alert (LCD & Buzzer)
Learn HC‑SR04 ultrasound distance measurement with Arduino Uno. Build a parking alert system with 16x2 LCD and buzzer – shows distance and beeps faster as you approach.