Hello everyone,
I am working with the XIAO ESP32-C6 board from Seeed Studio and trying to connect a GC9A01 (1.28-inch circular TFT LCD display) to it, but I am facing issues getting it to work correctly.
I have tried using both Arduino IDE and PlatformIO, but so far, I have not been able to get the display to show anything correctly. Has anyone had success using this display with the XIAO ESP32-C6?
Details:
- Board: XIAO ESP32-C6 by Seeed Studio
- Display: GC9A01 (1.28-inch circular TFT LCD display)
- Environments tested: Arduino IDE and PlatformIO
- Problem: The display does not show anything or shows visual artifacts, and I haven’t found specific documentation for this board with the GC9A01.
Additional Information:
- I have followed some tutorials for connecting TFT displays with ESP32 in general, but I haven’t found specific examples for the XIAO ESP32-C6.
- I have installed the correct board manager and set up the connections, but the display does not respond as expected.
Here is my user setup configuration for the display:
cpp
Copiar código
#define USER_SETUP_INFO "User_Setup"
#define GC9A01_DRIVER
// For ESP32 Dev board (only tested with GC9A01 display)
// The hardware SPI can be mapped to any pins
#define TFT_MOSI 10 // In some display driver board, it might be written as "SDA" and so on.
#define TFT_SCLK 8
#define TFT_CS 1 // Chip select control pin
#define TFT_DC 4 // Data Command control pin
#define TFT_RST 2 // Reset pin (could connect to Arduino RESET pin)
// Define the SPI clock frequency, this affects the graphics rendering speed. Too
// fast and the TFT driver will not keep up and display corruption appears.
// With an ILI9341 display 40MHz works OK, 80MHz sometimes fails
// With a ST7735 display more than 27MHz may not work (spurious pixels and lines)
// With an ILI9163 display 27 MHz works OK.
//#define SPI_FREQUENCY 1000000
// #define SPI_FREQUENCY 5000000
//#define SPI_FREQUENCY 10000000
// #define SPI_FREQUENCY 20000000
#define SPI_FREQUENCY 27000000
// #define SPI_FREQUENCY 40000000
// #define SPI_FREQUENCY 55000000 // STM32 SPI1 only (SPI2 maximum is 27MHz)
// #define SPI_FREQUENCY 80000000
Display Connections to the Board:
- TFT_MOSI (Pin 10) → MOSI Pin on the XIAO ESP32-C6
- TFT_SCLK (Pin 8) → SCK Pin on the XIAO ESP32-C6
- TFT_CS (Pin 1) → Chip Select Pin on the XIAO ESP32-C6
- TFT_DC (Pin 4) → Data/Command Pin on the XIAO ESP32-C6
- TFT_RST (Pin 2) → Reset Pin (could be connected to the XIAO RESET pin)
Has anyone managed to get this combination to work or can provide guidance or working code examples?
Any help would be greatly appreciated!
Thank you in advance.