Update TFT_eSPI_ESP8266.c

This commit is contained in:
Hamid Saffari 2020-03-27 16:54:02 +04:30 committed by GitHub
parent c3332af471
commit ed787f58f0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 0 deletions

View File

@ -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};