// --------------------------------------------------------------------------- // TFT_eSPI User_Setup.h for ESP32-DEVKIT V1 + 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 config.h. // --------------------------------------------------------------------------- // Driver selection #define GC9A01_DRIVER // Resolution #define TFT_WIDTH 240 #define TFT_HEIGHT 240 // SPI pins — ESP32-DEVKIT V1 VSPI bus #define TFT_MOSI 23 #define TFT_SCLK 18 #define TFT_CS 26 #define TFT_DC 25 #define TFT_RST 27 // 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