Added Second SPI option for Touchpad driver

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

View File

@ -15,6 +15,14 @@
#endif
#endif
#ifdef TOUCH_CS
#if defined (SPI2_for_TOUCH_PORT)
SPIClass spi = SPIClass(HSPI);
#else
SPIClass& spi = SPI;
#endif
#endif
////////////////////////////////////////////////////////////////////////////////////////
#if defined (TFT_SDA_READ) && !defined (TFT_PARALLEL_8_BIT)
////////////////////////////////////////////////////////////////////////////////////////