From e5105d99bcd62a4df70f8c9a8ba0fa77c8deb0db Mon Sep 17 00:00:00 2001 From: Gabriel Csapo Date: Thu, 27 Jan 2022 19:08:59 -0800 Subject: [PATCH] [chore] cleanup configs --- Processors/TFT_eSPI_ESP32.h | 16 ++++++++-------- User_Setups/Setup72_ESP32_C3_ILI9341.h | 8 ++++---- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/Processors/TFT_eSPI_ESP32.h b/Processors/TFT_eSPI_ESP32.h index e56c916..b8751cf 100644 --- a/Processors/TFT_eSPI_ESP32.h +++ b/Processors/TFT_eSPI_ESP32.h @@ -60,22 +60,22 @@ SPI3_HOST = 2 #ifdef USE_HSPI_PORT #ifdef CONFIG_IDF_TARGET_ESP32 #define SPI_PORT HSPI //HSPI is port 2 on ESP32 - #else - #ifdef CONFIG_IDF_TARGET_ESP32C3 + #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 + #endif + + #ifdef CONFIG_IDF_TARGET_ESP32C3 + #define SPI_PORT 2 //FSPI(ESP32 C3) #else - #ifdef CONFIG_IDF_TARGET_ESP32C3 - #define SPI_PORT 2 //FSPI(ESP32 C3) - #else - #define SPI_PORT 2 //FSPI(ESP32 S2) - #endif + #define SPI_PORT 2 //FSPI(ESP32 S2) #endif #endif diff --git a/User_Setups/Setup72_ESP32_C3_ILI9341.h b/User_Setups/Setup72_ESP32_C3_ILI9341.h index 15bb51a..b4a4110 100644 --- a/User_Setups/Setup72_ESP32_C3_ILI9341.h +++ b/User_Setups/Setup72_ESP32_C3_ILI9341.h @@ -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