48 lines
1.4 KiB
C
48 lines
1.4 KiB
C
// ═══════════════════════════════════════════════════════════
|
|
// 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.
|
|
//
|
|
// TODO: Change the driver, pins, and dimensions to match your display.
|
|
// ═══════════════════════════════════════════════════════════
|
|
|
|
#define USER_SETUP_ID 200
|
|
|
|
// ── Driver ──
|
|
#define ILI9341_DRIVER
|
|
// #define ST7789_DRIVER
|
|
// #define ILI9488_DRIVER
|
|
|
|
// ── Resolution ──
|
|
#define TFT_WIDTH 240
|
|
#define TFT_HEIGHT 320
|
|
|
|
// ── 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
|