simplify TFT display definition
This commit is contained in:
1 parent
9791333b0e
commit
4b216fb564
10 files changed
+45
-27
No files matched your search
+1
-10
@@ -18,18 +18,9 @@
|
||||
|
||||
// Display Settings
|
||||
#define HAS_DISPLAY 2 // TFT-LCD
|
||||
#define TFT_TYPE DISPLAY_T_DISPLAY
|
||||
#define MY_DISPLAY_FLIP 1 // use if display is rotated
|
||||
#define MY_DISPLAY_WIDTH 135
|
||||
#define MY_DISPLAY_HEIGHT 240
|
||||
#define MY_DISPLAY_INVERT 1
|
||||
#define TFT_TYPE LCD_ST7789_135 // size 135x240 px
|
||||
#define TFT_MOSI GPIO_NUM_19 // SPI
|
||||
#define TFT_MISO NOT_A_PIN // SPI
|
||||
#define TFT_SCLK GPIO_NUM_18 // SPI
|
||||
#define TFT_CS GPIO_NUM_5 // Chip select control
|
||||
#define TFT_DC GPIO_NUM_16 // Data Command control
|
||||
#define TFT_RST GPIO_NUM_23 // Reset
|
||||
#define TFT_BL GPIO_NUM_4 // LED back-light
|
||||
#define TFT_FREQUENCY 40000000
|
||||
|
||||
#endif
|
||||
Reference in new issue
Block a user