Added Second SPI option for Touchpad driver

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

View File

@ -6,8 +6,20 @@
// Global variables // Global variables
//////////////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////////////
#if defined (TFT_PARALLEL_8_BIT)
// No globals
#else
// Select the SPI port to use // Select the SPI port to use
SPIClass& spi = SPI; SPIClass& spi = SPI;
#endif
#ifdef TOUCH_CS
#if defined (SPI2_for_TOUCH_PORT)
#error define your board for second SPI configuration
#else
SPIClass& spi_touch = SPI;
#endif
#endif
//////////////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////////////
#if defined (TFT_SDA_READ) && !defined (TFT_PARALLEL_8_BIT) #if defined (TFT_SDA_READ) && !defined (TFT_PARALLEL_8_BIT)