34 lines
753 B
C
34 lines
753 B
C
// ===== User_Setup.h for E32R35T (ESP32-32E 3.5" Display) =====
|
|
#define USER_SETUP_LOADED
|
|
|
|
#define ST7796_DRIVER
|
|
|
|
#define TFT_WIDTH 320
|
|
#define TFT_HEIGHT 480
|
|
|
|
// LCD pins (HSPI bus)
|
|
#define TFT_CS 15
|
|
#define TFT_DC 2 // Called "TFT_RS" on the board
|
|
#define TFT_RST -1 // RST is tied to EN (ESP32 reset pin), not a GPIO
|
|
#define TFT_MOSI 13
|
|
#define TFT_SCLK 14
|
|
#define TFT_MISO 12
|
|
|
|
// Backlight
|
|
#define TFT_BL 27
|
|
#define TFT_BACKLIGHT_ON HIGH
|
|
|
|
// Touch (XPT2046, shares HSPI bus with LCD)
|
|
#define TOUCH_CS 33
|
|
|
|
// Use HSPI port (not default VSPI)
|
|
#define USE_HSPI_PORT
|
|
|
|
// SPI Frequencies
|
|
#define SPI_FREQUENCY 27000000
|
|
#define SPI_READ_FREQUENCY 20000000
|
|
#define SPI_TOUCH_FREQUENCY 2500000
|
|
|
|
#define SUPPORT_TRANSACTIONS
|
|
|