SPI colour display module for Arduino / ESP32 and similar boards.
Controller: ST7789 · Resolution: 240 × 320 (320×240) · Interface: 4-wire SPI · 8 pins (with backlight control)
Buy: uge-one.com — ST7789 2.8″ SPI LCD TFT module
Repository: UGEelectronics/2.8inch-TFT-ST7789-Module
| Front | With ESP32 demo | Pin labels |
|---|---|---|
![]() |
![]() |
![]() |
Compact 2.8-inch TFT panel on a blue breakout PCB with an 8-pin header. Silk text on the board: 2.8" 320×240 TFT. Intended for DIY electronics, IoT dashboards, meters, and handheld UIs.
| Item | Specification |
|---|---|
| Size | 2.8 inch diagonal |
| Resolution | 240 × 320 pixels (portrait) / 320 × 240 landscape |
| Colour | RGB, 16-bit (RGB565) |
| Driver IC | ST7789 |
| Bus | SPI (SCK, MOSI) + CS + D/C + RST |
| Logic / supply | 3.3 V (3V3 pin) |
| Pins | 8 — see table below |
| Backlight | Software control via BL — on-board driver circuit. Drive BL HIGH to turn the lamp on (PWM for dimming). |
Left → right on the connector (front view, header at the bottom):
| Silk | Function |
|---|---|
| BL | Backlight control (active high) |
| CS | SPI chip select |
| MOSI | SPI data (MCU → LCD) |
| SCK | SPI clock |
| D/C | Data / Command |
| RST | Reset |
| 3V3 | Power (3.3 V only) |
| GND | Ground |
There is no MISO pin on this product (write-only SPI is enough for normal graphics).
Revision note: Earlier boards were 7-pin with the backlight hardwired on. Current production is 8-pin with a dedicated BL pin. Pin order on the silk is as above — do not assume the old 7-pin order.
- Install Arduino IDE and the ESP32 board package (Espressif).
- Library Manager → install TFT_eSPI by Bodmer.
- Copy this repo’s setup file into the library (see User guide).
- Select that setup in
User_Setup_Select.h. - Wire the module (including BL), open
examples/ColorTest, Upload.
| Module pin | ESP32 GPIO |
|---|---|
| BL | 32 |
| CS | 2 |
| MOSI | 23 |
| SCK | 18 |
| D/C | 12 |
| RST | 13 |
| 3V3 | 3.3 V |
| GND | GND |
These GPIOs match TFT_eSPI_Setup/Setup_UGE_ST7789_ESP32.h.
TFT_eSPI turns the backlight on during tft.init() when TFT_BL is defined.
| Path | Description |
|---|---|
docs/USER_GUIDE.md |
Full install, wiring, troubleshooting |
TFT_eSPI_Setup/Setup_UGE_ST7789_ESP32.h |
Pin/driver file for TFT_eSPI |
examples/ColorTest/ |
RGB colour + backlight test sketch |
images/ |
Product photos |
TFT_eSPI’s built-in examples only include <TFT_eSPI.h>. They read pins from the library setup.
One library setup means:
- The colour test works
- Every TFT_eSPI example works with the same wiring
- Your own sketches need only
#include <TFT_eSPI.h>
Details: docs/USER_GUIDE.md
MIT — see LICENSE.
© UGE Electronics


