Skip to content

About

UGE 2.8 inch ST7789 SPI TFT (320x240, 3.3V, 7-pin) — docs, TFT_eSPI setup & ColorTest for ESP32

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

8 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

2.8″ TFT LCD Module (ST7789) — 240×320

UGE 2.8 inch ST7789 TFT — front view

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


Product photos

Front With ESP32 demo Pin labels
Front Demo Pins

Product description

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).

Header pinout (silk labels)

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.


Quick start (ESP32 + TFT_eSPI)

  1. Install Arduino IDE and the ESP32 board package (Espressif).
  2. Library Manager → install TFT_eSPI by Bodmer.
  3. Copy this repo’s setup file into the library (see User guide).
  4. Select that setup in User_Setup_Select.h.
  5. Wire the module (including BL), open examples/ColorTest, Upload.

Recommended ESP32 wiring

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.


Repository contents

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

Why configure User_Setup_Select.h?

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


Links

Licence

MIT — see LICENSE.

© UGE Electronics

About

UGE 2.8 inch ST7789 SPI TFT (320x240, 3.3V, 7-pin) — docs, TFT_eSPI setup & ColorTest for ESP32

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages