Waveshare ESP32-C5-Touch-LCD-2.8
2.8" 240x320 IPS LCD (ST7789 (docs link the ST7789V2 datasheet), SPI), CST3530 touch, ES8311 audio, TF card, QMI8658, PCF85063A.

Building for it
A project is made for one toolchain, picked when you start it. For this board you can use one of them:
| Toolchain | |
|---|---|
| Arduino (C++) | Every board, every widget and every peripheral here. The most control, and the most to set up. Start a project |
| MicroPython | lvgl_micropython has no build for this chip. |
| ESPHome | ESPHome has no driver for this touch controller. |
At a glance
| Part | Detail |
|---|---|
| Maker | Waveshare |
| MCU | ESP32-C5 RISC-V @ 240 MHz, dual-band Wi-Fi 6, 384 KB SRAM, quad PSRAM on some modules |
| Display | Sitronix ST7789, 240 x 320 px, SPI (4-wire serial), 16-bit colour |
| Touch | Hynitron CST3530 (capacitive, I2C) |
| Backlight | IOExtension pin 8, dimmable (PWM) |
| Memory | 32 MB flash, 8 MB quad PSRAM (N32R8) |
| Graphics library | GFX Library for Arduino |
Display pins
ST7789 on SPI (4-wire serial): SPI clock 80 MHz, host SPI2_HOST, RGB colour order, inversion on.
| Signal | Pin |
|---|---|
| SCK / CLK | GPIO 6 |
| MOSI / SDA | GPIO 7 |
| MISO / SDO | GPIO 8 |
| CS | GPIO 10 |
| DC / RS | GPIO 9 |
| RESET | IOExtension pin 1 |
| Backlight | IOExtension pin 8 |
Touch pins
CST3530: I2C address 0x58, 400 kHz, shares the display bus.
| Signal | Pin |
|---|---|
| SDA | GPIO 0 |
| SCL | GPIO 1 |
| INT / IRQ | GPIO 5 |
| RESET | IOExtension pin 0 |
Also on the board
- I2C (GPIO 0 / 1) - SDA GPIO 0, SCL GPIO 1
- IOExtension I/O expander at 0x24, driving the lines marked above
The preset adds these to the Hardware tab with the board, so a sensor can go straight onto the connector.
Check your revision. Pins from Waveshare's demo code and schematic (https://github.com/waveshareteam/ESP32-C5-Touch-LCD-2.8). Flash size: the schematic's module is ESP32-C5-WROOM-1-N32R8 and the docs say 32 MB; the ESP-IDF sdkconfig.defaults set CONFIG_ESPTOOLPY_FLASHSIZE_16MB.
Designing for it in LCD Wizard
- Choose Waveshare ESP32-C5-Touch-LCD-2.8 on the Hardware tab (or use the button above) and every pin on this page is filled in. The export writes the sketch,
lcd_pins.h, the GFX Library for Arduino configuration,lv_conf.handplatformio.ini- a project that builds for this board as it comes. - The CST3530 is capacitive and needs no calibration. The firmware resets it and checks it answers on every boot.
- The backlight is dimmable: give a slider or a button a Set backlight action.
- With PSRAM the LVGL memory pool can live there, leaving internal RAM for everything else.
- Screens are designed for 240 x 320 px in either orientation, with LVGL 9 or LVGL 8.
The parts
ST7789. Excellent colour and tolerates 80 MHz SPI. Many modules have no CS pin - tie it low and set CS to -1.
CST3530. Waveshare's 2.8" ESP32-C5 and C6 touch boards.
ESP32-C5. SPI displays. Quad PSRAM on the -R4/-R8 modules takes GPIO15.
GFX Library for Arduino. Moshi Liu's library. Best QSPI/AMOLED and RGB coverage. Configured in code.
The pinout on one page
Every pin above, laid out to print and keep beside the bench. Generated from this preset, so it says exactly what the designer writes into lcd_pins.h.
Download the pinout (PNG)Open it as SVG
From the people who made it
The board’s own documentation. Pinouts on vendor pages do sometimes disagree with the hardware in front of you - where this page and that one differ, trust your board and tell us.
- The vendor’s product page
- Vendor documentation
- Schematic (PDF)
- Waveshare demo code (pins read from here)
Designs for this board
Nobody has published a design for this board yet. Publish yours from the designer and it appears here and in the gallery.
Similar boards
Next
- Quick start - from an empty screen to firmware on the board
- Boards and displays - presets, controllers, pins and touch in the designer
- Flashing and configuration - PlatformIO, the Arduino IDE and first-boot checks
- Troubleshooting - a white screen, mirrored image or touch that misses