This project demonstrates how to initialize and control the ST7789 LCD display on the TTGO T-Display board using ESP-IDF. The main application sets up SPI communication, configures the display, and draws a bitmap image.
- SPI bus initialization for LCD communication
- ST7789 LCD panel configuration
- Backlight and reset control
- Bitmap image rendering
- Periodic serial console output
- TTGO T-Display (ESP32)
- ST7789 LCD (240x135 resolution)
Signal | GPIO |
---|---|
MOSI | 19 |
MISO | -1 |
SCLK | 18 |
CS | 5 |
DC | 16 |
BL (Backlight) | 4 |
RST | 23 |
-
Clone this repository.
-
Place your bitmap image data in
main/image.c
. -
Build and flash the project using ESP-IDF:
idf.py build idf.py flash
-
The display will show the image and print a message every second.
main/main.c
: Main application source code.main/image.c
: Bitmap image data to be displayed.
See LICENSE for details.