From ed787f58f0735e63e08bcb96a683d19f72ce9d72 Mon Sep 17 00:00:00 2001 From: Hamid Saffari <35362339+HamidSaffari@users.noreply.github.com> Date: Fri, 27 Mar 2020 16:54:02 +0430 Subject: [PATCH] Update TFT_eSPI_ESP8266.c --- Processors/TFT_eSPI_ESP8266.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Processors/TFT_eSPI_ESP8266.c b/Processors/TFT_eSPI_ESP8266.c index 7a7287c..b278b3c 100644 --- a/Processors/TFT_eSPI_ESP8266.c +++ b/Processors/TFT_eSPI_ESP8266.c @@ -7,6 +7,14 @@ // ESP8266 default (FLASH port also available via overlap mode) SPIClass& spi = SPI; +#ifdef TOUCH_CS + #if defined (SPI2_for_TOUCH_PORT) + #error ESP8266 has only one SPI + #else + SPIClass& spi_touch = SPI; + #endif +#endif + // Buffer for SPI transmit byte padding and byte order manipulation uint8_t spiBuffer[8] = {0,0,0,0,0,0,0,0};