Merge pull request #1682 from Frogomeli/fix-SPICOM
Allow generic driver to use a custom SPI port
This commit is contained in:
commit
cb37ae0aba
|
|
@ -7,7 +7,11 @@
|
||||||
////////////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
// Select the SPI port to use
|
// Select the SPI port to use
|
||||||
|
#ifdef TFT_SPI_PORT
|
||||||
|
SPIClass& spi = TFT_SPI_PORT;
|
||||||
|
#else
|
||||||
SPIClass& spi = SPI;
|
SPIClass& spi = SPI;
|
||||||
|
#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