Merge pull request #1682 from Frogomeli/fix-SPICOM

Allow generic driver to use a custom SPI port
This commit is contained in:
Bodmer
2022-03-05 00:23:27 +00:00
committed by GitHub

View File

@@ -7,7 +7,11 @@
////////////////////////////////////////////////////////////////////////////////////////
// Select the SPI port to use
SPIClass& spi = SPI;
#ifdef TFT_SPI_PORT
SPIClass& spi = TFT_SPI_PORT;
#else
SPIClass& spi = SPI;
#endif
////////////////////////////////////////////////////////////////////////////////////////
#if defined (TFT_SDA_READ) && !defined (TFT_PARALLEL_8_BIT)