mirror of
https://github.com/Bodmer/TFT_eSPI.git
synced 2025-08-04 05:04:42 +02:00
Make compatible with existing port define
This commit is contained in:
@@ -7,10 +7,10 @@
|
|||||||
////////////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
// Select the SPI port to use
|
// Select the SPI port to use
|
||||||
#ifndef SPICOM
|
#ifdef TFT_SPI_PORT
|
||||||
SPIClass& spi = SPI;
|
SPIClass& spi = TFT_SPI_PORT;
|
||||||
#else
|
#else
|
||||||
SPIClass& spi = SPICOM;
|
SPIClass& spi = SPI;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////////////
|
||||||
|
Reference in New Issue
Block a user