[chore] cleanup configs

This commit is contained in:
Gabriel Csapo 2022-01-27 19:08:59 -08:00
parent 43ab9516a2
commit e5105d99bc
2 changed files with 12 additions and 12 deletions

View File

@ -60,24 +60,24 @@ SPI3_HOST = 2
#ifdef USE_HSPI_PORT
#ifdef CONFIG_IDF_TARGET_ESP32
#define SPI_PORT HSPI //HSPI is port 2 on ESP32
#else
#endif
#ifdef CONFIG_IDF_TARGET_ESP32C3
#define SPI_PORT 2 //HSPI is port 1 on the ESP32 c3
#else
#define SPI_PORT 3 //HSPI is port 3 on ESP32 S2
#endif
#endif
#else
#ifdef CONFIG_IDF_TARGET_ESP32
#define SPI_PORT VSPI
#else
#endif
#ifdef CONFIG_IDF_TARGET_ESP32C3
#define SPI_PORT 2 //FSPI(ESP32 C3)
#else
#define SPI_PORT 2 //FSPI(ESP32 S2)
#endif
#endif
#endif
#ifdef RPI_DISPLAY_TYPE
#define CMD_BITS (16-1)

View File

@ -5,11 +5,11 @@
#define USE_HSPI_PORT
#define TFT_MOSI 7
#define TFT_MISO 5
#define TFT_MISO 2
#define TFT_SCLK 6
#define TFT_CS 9 // Chip select control pin
#define TFT_DC 19 // Data Command control pin
#define TFT_RST 18 // Reset pin (could connect to RST pin)
#define TFT_CS 10 // Chip select control pin
#define TFT_DC 9 // Data Command control pin
#define TFT_RST 4 // Reset pin (could connect to RST pin)
// Optional - define for XPT2046 touch controller
#define TOUCH_CS 8 // Chip select pin (T_CS) of touch screen