Added Second SPI option for Touchpad driver
This commit is contained in:
parent
fa2727b511
commit
c3332af471
|
|
@ -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)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue