[chore] cleanup configs
This commit is contained in:
parent
43ab9516a2
commit
e5105d99bc
|
|
@ -60,22 +60,22 @@ SPI3_HOST = 2
|
||||||
#ifdef USE_HSPI_PORT
|
#ifdef USE_HSPI_PORT
|
||||||
#ifdef CONFIG_IDF_TARGET_ESP32
|
#ifdef CONFIG_IDF_TARGET_ESP32
|
||||||
#define SPI_PORT HSPI //HSPI is port 2 on ESP32
|
#define SPI_PORT HSPI //HSPI is port 2 on ESP32
|
||||||
#else
|
#endif
|
||||||
#ifdef CONFIG_IDF_TARGET_ESP32C3
|
|
||||||
|
#ifdef CONFIG_IDF_TARGET_ESP32C3
|
||||||
#define SPI_PORT 2 //HSPI is port 1 on the ESP32 c3
|
#define SPI_PORT 2 //HSPI is port 1 on the ESP32 c3
|
||||||
#else
|
#else
|
||||||
#define SPI_PORT 3 //HSPI is port 3 on ESP32 S2
|
#define SPI_PORT 3 //HSPI is port 3 on ESP32 S2
|
||||||
#endif
|
#endif
|
||||||
#endif
|
|
||||||
#else
|
#else
|
||||||
#ifdef CONFIG_IDF_TARGET_ESP32
|
#ifdef CONFIG_IDF_TARGET_ESP32
|
||||||
#define SPI_PORT VSPI
|
#define SPI_PORT VSPI
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifdef CONFIG_IDF_TARGET_ESP32C3
|
||||||
|
#define SPI_PORT 2 //FSPI(ESP32 C3)
|
||||||
#else
|
#else
|
||||||
#ifdef CONFIG_IDF_TARGET_ESP32C3
|
#define SPI_PORT 2 //FSPI(ESP32 S2)
|
||||||
#define SPI_PORT 2 //FSPI(ESP32 C3)
|
|
||||||
#else
|
|
||||||
#define SPI_PORT 2 //FSPI(ESP32 S2)
|
|
||||||
#endif
|
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -5,11 +5,11 @@
|
||||||
#define USE_HSPI_PORT
|
#define USE_HSPI_PORT
|
||||||
|
|
||||||
#define TFT_MOSI 7
|
#define TFT_MOSI 7
|
||||||
#define TFT_MISO 5
|
#define TFT_MISO 2
|
||||||
#define TFT_SCLK 6
|
#define TFT_SCLK 6
|
||||||
#define TFT_CS 9 // Chip select control pin
|
#define TFT_CS 10 // Chip select control pin
|
||||||
#define TFT_DC 19 // Data Command control pin
|
#define TFT_DC 9 // Data Command control pin
|
||||||
#define TFT_RST 18 // Reset pin (could connect to RST pin)
|
#define TFT_RST 4 // Reset pin (could connect to RST pin)
|
||||||
|
|
||||||
// Optional - define for XPT2046 touch controller
|
// Optional - define for XPT2046 touch controller
|
||||||
#define TOUCH_CS 8 // Chip select pin (T_CS) of touch screen
|
#define TOUCH_CS 8 // Chip select pin (T_CS) of touch screen
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue