From e4778d7734112847e26bfe76b8c858b93fad39c7 Mon Sep 17 00:00:00 2001 From: Bodmer Date: Wed, 20 Apr 2022 22:36:42 +0100 Subject: [PATCH] Fix #1767 --- Processors/TFT_eSPI_ESP32.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Processors/TFT_eSPI_ESP32.h b/Processors/TFT_eSPI_ESP32.h index 5c2f4cd..c0dc893 100644 --- a/Processors/TFT_eSPI_ESP32.h +++ b/Processors/TFT_eSPI_ESP32.h @@ -317,6 +317,13 @@ SPI3_HOST = 2 #define TFT_SCLK 18 #endif + #if defined(CONFIG_IDF_TARGET_ESP32C3) || defined(CONFIG_IDF_TARGET_ESP32S2) + #if (TFT_MISO == -1) + #undef TFT_MISO + #define TFT_MISO TFT_MOSI + #endif + #endif + #endif #endif