User Setup for the TTGO T-Display S2
This commit is contained in:
parent
553307aa63
commit
cf66ae3148
|
|
@ -83,7 +83,8 @@
|
|||
|
||||
//#include <User_Setups/Setup70_ESP32_S2_ILI9341.h> // Setup file for ESP32 S2 with SPI ILI9341
|
||||
|
||||
//#include <User_Setups/Setup71_ESP32_S2_ST7789.h> // Setup file for ESP32 S2 with ST7789
|
||||
//#include <User_Setups/Setup71_ESP32_S2_ST7789.h> // Setup file for ESP32 S2 with ST7789
|
||||
//#include <User_Setups/Setup72_TTGO_T_Display_S2.h> // Setup file for ESP32-S2 and TTGO T-Display S2 ST7789 SPI TFT 135x240
|
||||
|
||||
//#include <User_Setups/Setup100_RP2040_ILI9488_parallel.h>
|
||||
//#include <User_Setups/Setup101_RP2040_ILI9481_parallel.h>
|
||||
|
|
|
|||
|
|
@ -0,0 +1,30 @@
|
|||
// Setup for the TTGO T-Display S2
|
||||
// Note SPI DMA with ESP32 S2 is not currently supported
|
||||
|
||||
// See SetupX_Template.h for all options available
|
||||
|
||||
#define TFT_WIDTH 135
|
||||
#define TFT_HEIGHT 240
|
||||
#define ST7789_DRIVER // Configure all registers
|
||||
|
||||
#define USE_HSPI_PORT
|
||||
|
||||
#define TFT_MISO -1
|
||||
#define TFT_MOSI 35
|
||||
#define TFT_SCLK 36
|
||||
#define TFT_CS 34
|
||||
#define TFT_DC 37
|
||||
#define TFT_RST 38
|
||||
#define TFT_BL 33
|
||||
|
||||
#define LOAD_GLCD
|
||||
#define LOAD_FONT2
|
||||
#define LOAD_FONT4
|
||||
#define LOAD_FONT6
|
||||
#define LOAD_FONT7
|
||||
#define LOAD_FONT8
|
||||
#define LOAD_GFXFF // FreeFonts. Include access to the 48 Adafruit_GFX free fonts FF1 to FF48 and custom fonts
|
||||
#define SMOOTH_FONT
|
||||
|
||||
#define SPI_FREQUENCY 27000000
|
||||
#define SPI_TOUCH_FREQUENCY 2500000
|
||||
Loading…
Reference in New Issue