23 lines
986 B
C
23 lines
986 B
C
#pragma once
|
||
|
||
#define BOARD_NAME "WS_32E"
|
||
|
||
// ══════════════════════════════════════════════════════════
|
||
// TODO: Set these to match YOUR display + wiring.
|
||
// Defaults below are for a common ILI9341 320×240 SPI TFT.
|
||
// The actual pin mapping must also be set in tft_user_setup.h
|
||
// (which gets copied into the vendored TFT_eSPI library).
|
||
// ══════════════════════════════════════════════════════════
|
||
|
||
#define DISPLAY_WIDTH 320
|
||
#define DISPLAY_HEIGHT 240
|
||
#define DISPLAY_ROTATION 1 // landscape
|
||
|
||
// Backlight GPIO (directly wired)
|
||
#define PIN_LCD_BL 22
|
||
|
||
// Touch — if using XPT2046 via TFT_eSPI, set TOUCH_CS in tft_user_setup.h
|
||
// If using capacitive touch (e.g. FT6236), configure I2C pins here:
|
||
// #define TOUCH_SDA 21
|
||
// #define TOUCH_SCL 22
|