// ═══════════════════════════════════════════════════════════ // TFT_eSPI User_Setup for ESP32-32E target // This file is copied over vendor/esp32-32e/TFT_eSPI/User_Setup.h // by the install-libs-32e task. // ═══════════════════════════════════════════════════════════ #define USER_SETUP_ID 200 // ── Driver ── #define ILI9341_DRIVER // ── Resolution ── // FIXED: Match board_config.h (320x240 landscape) #define TFT_WIDTH 320 #define TFT_HEIGHT 240 // ── SPI Pins ── #define TFT_MOSI 23 #define TFT_SCLK 18 #define TFT_CS 5 #define TFT_DC 27 #define TFT_RST 33 // ── Backlight (optional, can also use GPIO directly) ── // #define TFT_BL 22 // #define TFT_BACKLIGHT_ON HIGH // ── Touch (XPT2046 resistive) ── #define TOUCH_CS 14 // ── SPI speed ── #define SPI_FREQUENCY 40000000 #define SPI_READ_FREQUENCY 20000000 #define SPI_TOUCH_FREQUENCY 2500000 // ── Misc ── #define LOAD_GLCD #define LOAD_FONT2 #define LOAD_FONT4 #define LOAD_FONT6 #define LOAD_FONT7 #define LOAD_FONT8 #define LOAD_GFXFF #define SMOOTH_FONT