Hello friends, I hope you all are doing great. Today, I am going to share the new SSD1351 RGB OLED Library for Proteus Simulation. The SSD1351 from Solomon Systech drives the popular 1.5-inch colour OLED: 128 x 128 pixels that glow by themselves, with deep blacks, bright colours and a wide viewing angle - the little screen of wearables, meters, game consoles and dashboards. With this library you can run a full Proteus simulation of that module: the 4-wire SPI, the command lock, the remap and colour depth, the start line and offset, and the 128 x 128 picture itself, so that your init and your drawing code work before the module arrives.
SSD1351 RGB OLED Library for Proteus
Latest version: V1.0 (November 2026, this tutorial)
Other displays: OLED SSD1306 · GC9A01 Round TFT · TFT ST7735 · Nokia 5110 LCD
Helping Tools
- Serial Monitor Advance: a serial terminal window for the UART of your board
- Serial Monitor Expert: the serial monitor with extra debugging tools
- LCD Library for Proteus V3.0: 16x2, 20x4 and I2C LCDs to show your readings
The picture appears on the glass on the sheet while the simulation runs, and a pop-up shows the controller's state. The demo starts with a timed colour test, draws a rainbow of 128 colours and then animates a colour spectrum of eight bars under a title.
NOTICE: Our team has put a lot of effort into these small parts: the bodies, the animation and the pop-ups are all our own design, and you get them free. Your feedback is the fuel that keeps us going, so please tell us what you think in the comments below or in the LCD board of our forum. And if our free libraries help you, you can buy us a coffee. So, let's get started with the SSD1351 RGB OLED Library for Proteus Simulation:
What Is the SSD1351 RGB OLED?
The SSD1351 is a single-chip driver for small colour OLED panels. It holds a 128 x 128 display RAM of 18-bit colour, drives the panel's 128 rows (COM) and 384 columns (three per pixel), and talks to the outside world over SPI or a parallel bus. On the 1.5-inch modules it sits behind a square OLED glass; the board adds a boost converter for the panel voltage and a regulator so that it runs from 3.3 or 5 V. An OLED has no backlight - each pixel makes its own light - so black is truly black and an unlit screen draws almost nothing.
| 1.5" RGB OLED module (SSD1351) | |
|---|---|
| Panel | 1.5" RGB OLED, 128 x 128 pixels, 26.9 mm square |
| Colours | 65k (16 bits, two bytes) or 262k (18 bits, three bytes) |
| Interface | 4-wire SPI: DIN, CLK, CS, DC, plus RST |
| Module | about 40 x 46 mm here, 3.3 - 5 V |
| Memory | 128 x 128 x 18 bits inside the controller |
| Uses | wearables, meters, handheld games, small dashboards |
The Command Lock
The SSD1351 protects itself against stray bytes. After a reset, six set-up commands - the display offset (A2h), the phase length (B1h), the clock (B3h), the precharge voltage (BBh), VCOMH (BEh) and the colour contrast (C1h) - are locked. The start-up list therefore begins with FDh 12h (unlock the interface) and FDh B1h (open those six). Skip it and the display offset stays at its reset value of 60h: the whole picture appears 96 rows down, wrapped around - one of the most puzzling first faults with this display, and our simulation shows it just the same.
The Remap Register
One byte, A0h, decides how the RAM reaches the glass. Bit 0 chooses horizontal or vertical address increment, bit 1 mirrors the columns, bit 2 swaps the colour order to C-B-A, bit 4 reverses the COM scan, bit 5 enables the odd / even COM split that 128-row panels are wired for, and bits 7 - 6 select 65k or 262k colours. The usual value for a 128 x 128 module is 74h. Get bit 2 wrong and red and blue swap; forget bit 5 and every other row lands in the wrong place; flip bit 4 and the picture stands on its head.
Windows and Pixels
Drawing works as on most colour displays: 15h sets the first and last column of a window, 75h the first and last row - one byte each, as the panel is only 128 wide - and 5Ch starts writing the RAM. The pixels then fill the window row by row, two bytes each in 65k mode, high byte first. A full screen is 16,384 pixels and 32,768 bytes; at the UNO's 8 MHz that is a few tens of milliseconds, so good drawing code changes only what moves.
Features of the SSD1351 RGB OLED Library for Proteus Simulation
- A real-looking module: the black 40 x 46 mm board at its real size, the glass with its 26.9 mm square active area, the flex and the seven-pin header.
- The picture on the sheet: what your sketch draws appears on the glass at run time.
- The real interface: 4-wire SPI (mode 0), DC read with the 8th bit, CS framing, RST.
- The real commands: set column / row, write RAM, remap and colour depth, start line, display offset, all on / all off / normal / inverse, sleep and display on, contrast A B C, master contrast and the command lock.
- Real faults: a dark panel without AFh, a picture 96 rows down without the unlock and A2h 00h, swapped colours, interleaved rows, an upside-down picture.
- A pop-up: the picture and ten tiles - the panel, the remap, the scan, the start line and offset, the window, SPI, the pixels, a full screen, the contrast and the last command - graphs, an event log and a check page.
- A complete package: about 1.3 MB with the library, our Arduino UNO V4.0 and the demo, without the source code of the model.
The SSD1351 in Proteus
The device is SSD1351OLEDTEP in TEPSSD1351.LIB, under Optoelectronics > OLED, with the prefix U and the model TEPSSD1351.DLL. Search SSD1351 or OLED in Pick Devices. Seven pins on top: VCC, GND, DIN, CLK, CS, DC and RST. It has no properties: it shows whatever your sketch draws.
Download SSD1351 RGB OLED Library for Proteus Simulation
Click the button below to download SSD1351-RGB-OLED-Library-for-Proteus-v1.0.zip (about 1.3 MB, without the source code of the models):
SSD1351 RGB OLED Library for Proteus V1.0- README.txt: installation, the demo, the wiring, troubleshooting and the limits of the simulation.
- Proteus Library Files:
TEPSSD1351.LIBandArduinoV4TEP.LIB. - Proteus Model Files:
TEPSSD1351.DLLandTEPARDUINO.DLL. - Arduino Code: the demo sketch (no display library).
- Proteus Simulation: the demo project, its HEX file and copies of the DLLs.
No Proteus yet? Read How to Download and Install Proteus 7 and 8. New to libraries? Follow How to Install a New Library in Proteus.
How to Install SSD1351 RGB OLED Library for Proteus Simulation
- Close Proteus and extract the whole zip file, for example to your Desktop.
- Copy the files from Proteus Library Files into the LIBRARY folder of Proteus.
- Copy the files from Proteus Model Files into the MODELS folder.
- Delete
TEPSSD1351.IDXfrom the LIBRARY folder if it is there. - Start Proteus, press P and search for SSD1351.
Proteus Simulation of a Colour Spectrum
Our demo shows what a colour OLED can do. U1 is the SSD1351 module. Its DIN goes to D11 and CLK to D13 of our Arduino UNO Library for Proteus V4.0 - the UNO's hardware SPI - while CS goes to D10, DC to D9 and RST to D8; VCC and GND to the supply. The Arduino's built-in monitor is the same window as our TEP Serial Monitor Advance for Proteus. Open SSD1351-Spectrum-ArduinoUnoV4.pdsprj.
The Sketch
The sketch needs no display library: it talks to the SSD1351 with plain SPI calls at 8 MHz. The start-up list is a table in flash - a command, the number of its parameters and the parameters. It opens with the unlock:
0xFD, 1, 0x12, 0xFD, 1, 0xB1, 0xAE, 0, 0xB3, 1, 0xF1, 0xCA, 1, 127, 0xA2, 1, 0x00, 0xB5, 1, 0x00, 0xAB, 1, 0x01,
and ends with the remap, the start line and the display on:
0xA0, 1, 0x74, 0xA1, 1, 128, 0xAF, 0, 0};
A command is one byte with DC low:
void command(byte c) { digitalWrite(PIN_DC, LOW); SPI.transfer(c); digitalWrite(PIN_DC, HIGH); } // (CS already low)
Every drawing starts with a window - the columns, the rows - and Write RAM:
command(0x15); SPI.transfer(x0); SPI.transfer(x1); // Set Column: start, end
command(0x75); SPI.transfer(y0); SPI.transfer(y1); // Set Row: start, end
command(0x5C); // Write RAM: the pixels follow
A filled rectangle is then one long run of pixels, two bytes each:
for (long n = (long)w * h; n > 0; n--) { SPI.transfer(hi); SPI.transfer(lo); }
The spectrum never redraws a whole bar. Each frame it compares a bar's new height with the old one and paints only the difference - colour where it grew, black where it shrank:
if (h > level[i]) fillRect(x, 128 - h, 14, h - level[i], hue565(i * 24));
else if (h < level[i]) fillRect(x, 128 - level[i], 14, level[i] - h, BLACK);
SSD1351 Simulation Results
Open the project and press Run. The demo runs 9.0 simulated seconds and took about three minutes on our PC with the pop-up open and the pictures being taken. Click the module for its pop-up. Every number below comes from one simulation run, the demo exactly as it ships.
The Start-Up
The module powers up asleep, as the real one does. At 65 ms the sketch pulses RST low - a hardware reset: asleep, remap 40h, display offset 60h and six commands locked, as the Event log lists them. At 105.6 ms FDh B1h opens those commands, so A2h 00h right after it is accepted; then come A0h 74h - 65k colours, colour order C-B-A, COM scan reversed, COM split - A1h 128 and AFh at 105.9 ms. No command was refused, and the Check page says so.
The Colour Test
The colour test fills the whole panel four times: red, green, blue and white. The monitor prints 78, 77, 76 and 77 ms for the four fills, and the pop-up agrees - the first full screen took 76.7 ms at 0.194 s, with the SPI clock at 8.00 MHz. 32,768 bytes at 8 MHz are about 33 ms of pure clock; the loop around SPI.transfer() more than doubles it. Each colour stays for 400 ms - our picture shows the green one.
The Rainbow
At 2.1 s the rainbow appears: 128 windows of one column each, from red through yellow, green, cyan, blue and magenta and back to red. Each column needs eleven bytes of commands for its 128 pixels - cheap enough that the whole rainbow takes a fraction of a second. The tiles show the last window, x 127 - 127, y 0 - 127.
The Spectrum
From 3.7 s the panel shows the title and the spectrum: eight bars in eight colours, moving every 80 ms. The monitor counts the frames - 1, 26 and 51, two seconds apart, 12.5 frames a second. Because each frame writes only what changed, the SPI traffic stays modest: the window tile shows a small rectangle at the top of one bar. On the sheet the bars dance on the module's glass, and the SPI LED flickers with every frame. By 9.0 s the controller has received 2,070 commands, 684 Write RAM and 179,400 pixels.
The Graphs, the Event Log and the Check Page
The Graphs page plots the pixels written and the SPI bytes per second, the SPI clock and whether the display is on. The Event log keeps the reset, the unlock, the remap and the display on. The Check page sums up the run: VCC 5.00 V, one reset, the commands unlocked with none refused, the display on, A0h 74h (65k colours, colour order C-B-A, COM split on), the start line 128 with offset 0 - the picture in place - SPI at 8.00 MHz with no byte dropped, and 179,400 pixels in 684 Write RAM with a full screen in 76.2 ms. Every line is green.
The monitor shows the sketch's side: the init, the time of each colour fill, the rainbow and the spectrum frames.
A Colour OLED, a Monochrome OLED or a TFT?
Our OLED SSD1306 Library for Proteus simulates the classic small monochrome OLED over I2C - the cheapest way to show text and simple graphics. Our GC9A01 Round TFT Library for Proteus is a 240 x 240 round IPS TFT with a backlight, sharper and brighter in sunlight. The SSD1351 sits between them: full colour, true black and a square 128 x 128 picture that looks great in a dark room or a small case.
Try It Yourself
- Remove FDh B1h from the start-up list: A2h 00h is refused and the picture appears 96 rows down - watch the warning in the Event log.
- Change A0h from 74h to 70h: red and blue swap places.
- Try 54h: without the COM split every other row lands in the wrong half.
- Send A7h after the init for an inverse display, or A5h to light every pixel.
- Lower the master contrast (C7h) from 0Fh to 05h and watch the colours dim.
Ideas to Extend the Demo
- A digital watch face with the seconds as a colour ring.
- A small game: a paddle and a ball, redrawing only what moves.
- A sensor meter with a coloured bar and a big number.
Your Own Sketches
The demo sketch is in the zip file, and you can change it in the Arduino IDE. New to Arduino? Start with our Arduino Tutorial for Beginners. Export the compiled binary, and set the UNO's PROGRAM property to the new file. Our guide on How to get the HEX file from Arduino shows you where the file ends up.
Things to Know Before Using a Real SSD1351
- The init: send the whole start-up list after every reset - the unlock first.
- Logic levels: many modules accept 3.3 - 5 V; check yours before wiring to a 5 V board.
- Speed: an UNO's SPI tops out at 8 MHz - redraw only what changes; a faster board makes full-screen animation easy.
- Burn-in: an OLED ages with use - dim it with the master contrast and avoid a fixed bright picture for hours.
- Several displays: share DIN, CLK and DC; give each its own CS.
Troubleshooting
- The panel stays dark: no AFh, the init did not run, CS or DC not connected, or no supply.
- The picture is 96 rows down: the display offset is still 60h - send FDh B1h, then A2h 00h.
- Red and blue are swapped: A0h bit 2 (colour order C-B-A) is missing.
- Rows are mixed up or the picture is upside down: A0h bit 5 (COM split) or bit 4 (COM scan).
- The part is not simulated:
TEPSSD1351.DLLis missing from MODELS and from the project folder.
Limitations of the Simulation
- The 4-wire SPI, the commands, the 128 x 128 RAM with the remap, start line and offset, 65k / 262k colours, the display modes, sleep, the command lock and the contrast follow the maker's description; the module is our own drawing.
- Our own choices: the panel's mounting (upright and true colours with A0h 74h), the colour brightness relative to C1h C8h 80h C8h, the sheet's redraw rate and the LEDs.
- Not modelled: scrolling (accepted, not shown), the gray-scale table's shape, reading the RAM back and the panel's ageing.
- Arduino is a name of Arduino; this library is not made or endorsed by Arduino, Labcenter or Solomon Systech.
- Tested in Proteus 8.5 in November 2026 (the demo as shipped). Proteus 7 is not supported.
So, that was all about the SSD1351 RGB OLED Library for Proteus Simulation. I hope it helps you get your unlock, your remap and your drawing right before the first module arrives - so that your colours glow in the simulation before they glow in your hand. If you have any questions, ask in the comments and I will help you out. Till the next tutorial, take care and have fun!