You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Star0 (0)You must be signed in to star a repository
About
The LilyGO T-Display-C5 is a development board based on the ESP32-C5, featuring a 1.9-inch ST7789 LCD touchscreen, an AXP2602 power management chip, and a CST816S capacitive touch controller. It supports wake-up from deep sleep via button (IO0) and I2C (IO2, IO3).
The LilyGO T-Display-C5 is a development board based on the ESP32-C5, featuring a 1.9-inch ST7789 LCD touchscreen, an AXP2602 power management chip, and a CST816S capacitive touch controller. It supports wake-up from deep sleep via button (IO0) and I2C (IO2, IO3).
🛠️ Hardware Specifications
Item
Spec
SoC
ESP32-C5 (RISC-V 32-bit, 240MHz)
Flash
16MB (Quad QIO)
PSRAM
8MB (Quad QIO)
Display
1.9" ST7789, 170×320 RGB565, SPI
Touch (optional)
CST816S Capacitive Touch (I2C)
BMU
AXP2602 Power voltameter
Wireless
Wi-Fi + Bluetooth
USB
USB Type-C (USB-Serial-JTAG)
🔌 Pin Mapping
Function
Pin
Description
LCD
LCD_CS
GPIO 26
SPI Chip Select
LCD_SCK
GPIO 7
SPI Clock
LCD_MOSI
GPIO 9
SPI Data
LCD_DC
GPIO 8
Data/Command
LCD_RST
GPIO 23
Reset
LCD_BLK
GPIO 25
Backlight PWM
I2C
I2C_SDA
GPIO 2
I2C Data
I2C_SCL
GPIO 3
I2C Clock
Touch (CST816S)
TP_INT
GPIO 27
Touch Interrupt
TP_RST
GPIO 24
Touch Reset
Buttons
BUTTON (GPIO0)
GPIO 0
User Button
BOOT
GPIO 28
BOOT Button
BMU
AXP2602_INT
GPIO 10
AXP2602 Interrupt
In DeepSleep mode, the ESP32C5 can be woken up by IO0-IO6 pins; for detailed information, please refer to the datasheet.
In platformio.ini, uncomment the default_envs line for your target example and comment out others:
[platformio]default_envs = factory ; change to your desired example name
Hold down both the rst and boot buttons simultaneously, then release the rst button first, followed by releasing the boot button to enter programming mode.
Go to File → Preferences, add the following URL to "Additional Boards Manager URLs":
https://espressif.github.io/arduino-esp32/package_esp32_index.json
Open Tools → Board → Boards Manager, search for and install esp32 (v3.x+)
Copy the board configuration from board/Lilygo-T-Display-C5.json into Arduino's board definition, or manually configure:
Flash Size: 16MB
Partition Scheme: Default 16MB
PSRAM: Enabled (Quad QIO)
Open examples/<example_name>/<example_name>.ino
Copy include/board_config.h and the libraries from lib/ into your Arduino libraries folder or alongside the sketch
Hold down both the rst and boot buttons simultaneously, then release the rst button first, followed by releasing the boot button to enter programming mode.
Click Upload
Note: The ESP32-C5 requires a recent Arduino ESP32 version. If you encounter issues, PlatformIO is recommended.
The LilyGO T-Display-C5 is a development board based on the ESP32-C5, featuring a 1.9-inch ST7789 LCD touchscreen, an AXP2602 power management chip, and a CST816S capacitive touch controller. It supports wake-up from deep sleep via button (IO0) and I2C (IO2, IO3).