mirror of
https://github.com/Bodmer/TFT_eSPI.git
synced 2025-08-03 12:44:46 +02:00
Merge pull request #1682 from Frogomeli/fix-SPICOM
Allow generic driver to use a custom SPI port
This commit is contained in:
@@ -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)
|
||||
|
Reference in New Issue
Block a user