Source: https://mokxi.com/parts/sh1107
Updated: 2026-11-16

Part

# OLED display, 1.12 inch SH1107

A square 128x128 OLED on I2C, the Grove 1.12 inch: sixteen pages of RAM for a 2 KB frame.

See every part

- 4 pins
- 1 setting
- In 1 project

Drawn live by the editor's own code, at the size you see it.

At a glance

## The OLED display, 1.12 inch SH1107 in brief

What it is, and every setting the properties panel gives it.

The SH1107 is the Sino Wealth controller on the square 1.12 inch 128x128 monochrome OLEDs, the Grove OLED Display 1.12 and Adafruit’s 128x128 module. It has four pins, GND, VCC, SDA and SCL, sits on I2C at 0x3C, runs from 3.3 or 5 V and carries its own pull-ups: A4 and A5 on an Uno, 21 and 22 on an ESP32, 20 and 21 on a Mega. Unlike the SSD1306 and SH1106, its RAM is 128 columns by sixteen pages, and its 0x20 and 0x21 addressing mode commands take no parameter, so a driver for either sibling scrambles it. Mokxi models the datasheet’s page and vertical addressing, the column and page commands, contrast, inversion, every pixel on, the multiplex ratio, the display offset (0xD3), the start line (0xDC), segment remap and COM scan direction, with the address as a property. The mistake everybody makes is Adafruit’s SH110X library on an Uno: its frame is 2048 bytes, all of the Uno’s RAM, so it needs a Mega, an ESP32 or a Pico. Whether the charge pump lights the glass, reading the RAM, the bare chip’s SPI mode, and burn-in and fading are not modeled.

Family

Displays

Pins

4

address

60

Pins

## 4 pins

Named as the editor names them, so a wire lands where you expect it.

Pin

What it does

GND

Ground.

VCC

Supply, 3.3 or 5 V.

SDA

The I2C bus, address 0x3C. The board has the pull-ups.

SCL

The I2C bus, address 0x3C. The board has the pull-ups.

How to use it

## How to use the SH1107 128x128 OLED with an Arduino

Four wires: SDA and SCL to the board’s I2C pins, VCC to 5 V and GND to GND, at address 0x3C. The Grove OLED project runs on a Mega, with SDA and SCL on the pair beside AREF, because Adafruit’s SH110X library keeps a 2048-byte frame, which is all of an Uno’s RAM. On an Uno, begin() cannot get the memory and returns false.

Construct Adafruit_SH1107 with 128, 128 and &Wire, call begin(0x3C, true), draw with the GFX calls and send it with display(). Do not use an SSD1306 or SH1106 driver: the SH1107 has sixteen pages instead of eight, and its addressing mode commands take no parameter, so their set-up scrambles it.

Part pin

Board pin

SDA

SDA (pin 20)

SCL

SCL (pin 21)

VCC

5 V

GND

GND

An ESP32 has the RAM for it: SDA to GPIO 21 and SCL to 22 on a DevKit, from 3.3 V. The library also builds for a Pico.

Click to open it in the editor

This is the simulator itself, running here. Click anything to open it in the editor.

Open this project in the editor Read the full tutorial

Text on the SH1107, from the Grove OLED sketch

How it is modeled

## What is true about the OLED display, 1.12 inch SH1107, here

In its help article’s own words: what the simulation gets right, and where it stops.

### Modeled

From the SH1107 datasheet: the 128 by 128 RAM in sixteen pages; page and vertical
addressing; the column and page address commands; contrast, inversion and every
pixel on; the multiplex ratio, display offset and start line; segment remap and
COM scan direction; and the SSD1306 family's control bytes on the bus.

### Not modeled

Whether the charge pump setting lights the glass (the modules supply the panel
voltage themselves), reading the RAM back, the bare chip's SPI interface, and the
burn-in and fading of a real OLED.

From OLED display, 1.12 inch SH1107, in full.

Projects

## See the OLED display, 1.12 inch SH1107 in a project

One built-in project uses it. It opens in the editor, already wired.

Boards

## The boards it is shown on

This board has a built-in project with the OLED display, 1.12 inch SH1107 in it.

- Arduino Mega 2560

Libraries

## Arduino libraries for the OLED display, 1.12 inch SH1107

Built in, so the sketch compiles with nothing to install. Each page has the calls, the wiring and an example to run.

- Adafruit SH110X
- U8g2

More parts

## The rest of the bench

Every one of these is drawn and simulated the same way.

Full-size breadboard

A real 0.1 inch grid with the rails and the center channel, 63 columns wide.

Jumper wires

Drag from any pin or hole to any other. Corners snap, and you can drag them.

Power

A supply rail at the voltage you choose.

Ground

The other end of every circuit.

LED

Lights when current flows. Five colors, and the brightness is what your eye would see.

Filament lamp

A tungsten bulb in a holder: an inrush when it is switched on cold, tens of milliseconds to warm up, and dim on half its voltage.

Resistor

Any value you like, with the color bands drawn to match.

ESP32-C3-DevKitM-1

A RISC-V board that runs your firmware at 160 MHz on the real memory map.

Pushbutton

A 12 mm tactile switch. Hold it while the simulation runs.

Raspberry Pi Pico

The RP2040 board on our own Cortex-M0+ core. Pick a program and press Run.

Raspberry Pi Pico W

Raspberry Pi Pico W (RP2040). The same board and the same pinout as a Pico, with the CYW43439 on it. The WiFi is simulated (no radio; real internet through the Cloud panel’s switch), and the on-board LED, which hangs off that chip rather than off GP25, is driven through the same path. Everything else is the Pico.

Raspberry Pi 4 Model B

Raspberry Pi 4 Model B: the 40-pin header, driven by main.py with RPi.GPIO or gpiozero.

See every part

## Wire up the OLED display, 1.12 inch SH1107

Open the editor and push it into the breadboard. It is free, and it runs on your own machine.

Start building free Open the editor
