// --------------------------------------------------------------------------- // TFT_eSPI User_Setup.h for ESP32-S2 + GC9A01 240x240 round TFT // // INSTRUCTIONS: // Copy this file to your TFT_eSPI library folder, replacing the existing // User_Setup.h, then recompile. Alternatively, place it in the sketch // folder if your TFT_eSPI version supports sketch-local setup files. // // Pin numbers MUST match the wiring in src/config.h. // --------------------------------------------------------------------------- // Driver selection #define GC9A01_DRIVER // Resolution #define TFT_WIDTH 240 #define TFT_HEIGHT 240 // SPI pins — update to match your hardware wiring #define TFT_MOSI 35 #define TFT_SCLK 36 #define TFT_CS 34 #define TFT_DC 33 #define TFT_RST 38 // Backlight is controlled in firmware (PIN_TFT_BL in config.h) // SPI bus (ESP32-S2 FSPI = SPI2) #define USE_FSPI_PORT // SPI clock frequency #define SPI_FREQUENCY 27000000 #define SPI_READ_FREQUENCY 20000000 // Load built-in fonts #define LOAD_GLCD #define LOAD_FONT2 #define LOAD_FONT4 #define LOAD_FONT6 #define LOAD_FONT7 #define LOAD_FONT8 #define LOAD_GFXFF // Enable smooth (TrueType) font support #define SMOOTH_FONT