mirror of
https://git.mirrors.martin98.com/https://github.com/luc-github/ESP3D.git
synced 2025-08-05 16:20:37 +08:00

* Update WebSocket library * Update SSDP library * Update TFT_eSPI library * Update EspLuaEngine library * Update SDFat library * Change to pioarduino * Make ESP3DMessageFIFO and ESP3DMessage more thread safe * Fix sanity checks for BT * Add some C6 support * Refactor ethernet code * Split Ethernet Sta / WiFi sta ESP Commands and settings * Simplify wait and wdtFeed code * Set C3 with 4MB by default in platformio.ini * Apply Disable brown out only on ESP32 to avoid crash e.g:ESP32S3 * Add missing entries in platformio.ini
30 lines
646 B
C
30 lines
646 B
C
// Setup for the ESP32 S2 with ST7789 display
|
|
// Note SPI DMA with ESP32 S2 is not currently supported
|
|
#define USER_SETUP_ID 71
|
|
// See SetupX_Template.h for all options available
|
|
|
|
#define ST7789_DRIVER // Configure all registers
|
|
|
|
|
|
#define TFT_CS 34 // 10 or 34
|
|
#define TFT_MOSI 35 // 11 or 35
|
|
#define TFT_SCLK 37 // 12 or 36
|
|
#define TFT_MISO 36 // 13 or 37
|
|
|
|
#define TFT_DC 33
|
|
#define TFT_RST -1
|
|
|
|
#define LOAD_GLCD
|
|
#define LOAD_FONT2
|
|
#define LOAD_FONT4
|
|
#define LOAD_FONT6
|
|
#define LOAD_FONT7
|
|
#define LOAD_FONT8
|
|
#define LOAD_GFXFF
|
|
|
|
#define SMOOTH_FONT
|
|
|
|
#define SPI_FREQUENCY 27000000
|
|
|
|
#define SPI_TOUCH_FREQUENCY 2500000
|