Refactoring
This commit is contained in:
32
BoardTtgoT4v13.h
Normal file
32
BoardTtgoT4v13.h
Normal file
@@ -0,0 +1,32 @@
|
||||
|
||||
// Setup for TTGO T4 v13
|
||||
#define USER_SETUP_LOADED 1
|
||||
#define SPI_FREQUENCY 27000000
|
||||
#define SPI_TOUCH_FREQUENCY 2500000
|
||||
|
||||
#ifdef BOARD_TTGO_T4
|
||||
|
||||
#define ILI9341_DRIVER
|
||||
#define TFT_MISO 12
|
||||
#define TFT_MOSI 23
|
||||
#define TFT_SCLK 18
|
||||
#define TFT_CS 27
|
||||
#define TFT_DC 32
|
||||
#define TFT_RST 5
|
||||
//#define TFT_BACKLIGHT_ON HIGH
|
||||
#define TFT_BL 4
|
||||
|
||||
#define USE_HSPI_PORT
|
||||
//#define SPI_FREQUENCY 40000000 // Maximum for ILI9341
|
||||
#define SPI_READ_FREQUENCY 6000000 // 6 MHz is the maximum SPI read speed for the ST7789V
|
||||
|
||||
#define SD_CS 13
|
||||
#define SD_MOSI 15
|
||||
#define SD_MISO 2
|
||||
#define SD_SCLK 14
|
||||
|
||||
#define BUTTON_LEFT 38
|
||||
#define BUTTON_MIDDLE 37
|
||||
#define BUTTON_RIGHT 39
|
||||
|
||||
#endif // BOARD_TTGO_T4
|
||||
Reference in New Issue
Block a user