Skip to content
If this is your first visit, please click here to learn about shipping and delivery.
If this is your first visit, please touch here to learn about shipping and delivery.
Small 80 by 160 pixel IPS LCD module with SPI connections

Bring Up a Small ST7735 SPI Display on Raspberry Pi: Wiring, Drivers and Geometry

A small SPI screen is useful for a Pi that only needs to show an address, operating state or short measurement. It is a different kind of peripheral from an HDMI monitor. Connecting it does not automatically make the Linux desktop appear, and a lit backlight does not prove the display controller has received valid data.

The PMD Way Raspberry Pi TFT display collection includes a 0.96-inch 80 × 160 IPS LCD module, listed with an ST7735S controller, SPI interface and 3.3 V supply. This guide explains a method for commissioning such a display. It does not assume every ST7735-labelled board shares its pin order, backlight circuit or initialisation settings.

Choose the software role first

Decide whether one application will draw directly to the screen or whether you need a system framebuffer and console. A userspace graphics library can be convenient for a status panel. A kernel display driver has different configuration and integration requirements.

Begin with one approach. Do not run a userspace program against SPI pins already claimed by an incompatible display driver. Keep the normal remote-login or main-monitor connection available while developing; the small screen should not be your only way to see error messages.

Record the Pi model, operating-system release, library version and GPIO backend. A tutorial written for an older Pi may use a GPIO package that does not support your hardware. Confirm that support before changing the display wiring to compensate for a software error.

Build a signal map using functions

Write a table from each display signal to its Pi connection. Include supply, ground, serial clock, data from the host, chip select, data/command and reset where provided. Treat backlight power or control as a separate item until its circuit is understood.

Physical header positions and GPIO identifiers are different numbering systems. Raspberry Pi's hardware documentation shows, for example, SPI0 MOSI on GPIO10 at physical pin 19 and clock on GPIO11 at physical pin 23. GPIO8, commonly SPI0 CE0, is physical pin 24. Those are Pi header mappings, not a numbered pinout for the display module.

Verify which naming convention your library uses for reset and data/command. A value of 24 in a GPIO configuration usually does not mean physical header pin 24. Keep both columns in the wiring record and check every connection with power removed.

Keep power and logic limits explicit

The listed module uses a 3.3 V supply. Raspberry Pi GPIO operates with 3.3 V logic and is not 5 V tolerant. Do not move the display supply to a 5 V header pin because another manufacturer's breakout includes a regulator.

Determine the backlight's required supply and current-control arrangement from the exact module documentation. A label such as BL does not tell you whether the board contains a resistor or transistor. Do not drive an unknown backlight load directly from a GPIO output.

Use a common ground and short initial connections. Check for reversed power, loose jumpers and an unsupported signal returning to the Pi before powering up. If the documentation is incomplete, resolve that uncertainty rather than treating trial-and-error voltage changes as a diagnostic method.

Prove Linux can access the selected interface

Enable SPI through the supported configuration method for your Raspberry Pi OS release. Raspberry Pi's configuration documentation describes SPI enablement. Confirm that the selected SPI device is available and that the account running your program has the required access.

An error about a missing SPI device points to configuration or device ownership. A permission error points to access control. Neither proves that the display wires are wrong. Resolve the error message before examining colours or panel offsets.

Also verify that the program can control its chosen data/command and reset GPIOs using a backend supported on that Pi. SPI access and GPIO access are separate requirements. Saving the exact exception text is more useful than describing every failure as “the screen does not work”.

Match the driver to the panel geometry

The controller name alone is not the entire configuration. Panels using the same controller can expose different visible areas of its display memory. Width, height, rotation and memory offsets need to describe the actual panel.

The Luma.LCD API documentation exposes ST7735 settings for geometry, offsets, RGB/BGR order and inversion. These illustrate the settings that may need matching; they are not a claim that the default settings suit this particular module.

The project's driver implementation includes a 160 × 80 mode before rotation. Check the installed version's supported dimensions and convention rather than assuming width must be entered in the same order as the product title. Use a maintained configuration known for your panel variant where available.

Use one minimal test application

Start with a program that initialises the device and draws a simple fixed image. Exclude sensors, network requests, menus and automatic startup until that succeeds. Use a conservative clock supported by the controller, board and driver; there is no universal maximum for a long jumper-wire assembly.

A labelled border reveals whether all edges are visible. A few solid colour regions identify swapped channels or inversion. Keep the original test image unchanged while adjusting one configuration value at a time. Otherwise an offset change and a changed drawing can hide each other's errors.

Useful symptom categories
Observation First checks
Program cannot open the device SPI enablement, selected device and permissions
Backlight on, no deliberate image Reset, data/command, chip select and compatible initialisation
Stable image shifted or clipped Geometry, rotation and memory offsets
Stable red/blue exchange Colour-order setting and image conversion
Intermittent corruption Connections, supply, clock setting and competing access

These are starting points, not unique diagnoses. A stable wrong image usually provides more evidence than a completely blank screen, so preserve it and document the settings that produced it.

Integrate without losing the baseline

Once the minimal test works, save the wiring table, configuration and a photograph. Add one application feature at a time. If the display fails only when another SPI device is introduced, investigate bus ownership, chip-select handling and shared settings rather than immediately changing panel offsets.

Finally test the program after a clean restart under the same user account that will run it normally. Confirm that required libraries, permissions and startup dependencies are available. A display that works only in an interactive administrator session is not yet a dependable installed status panel.

Keep the test application alongside the finished project. It provides a quick way to distinguish the screen and interface from application logic when a future update changes behaviour.

Previous article Battery Power for Arduino Projects: Voltage Range, Runtime and Regulator Heat