Skip to content

Commit

Permalink
Merge pull request #1682 from Frogomeli/fix-SPICOM
Browse files Browse the repository at this point in the history
Allow generic driver to use a custom SPI port
  • Loading branch information
Bodmer authored Mar 5, 2022
2 parents e83383c + 6f4cf86 commit cb37ae0
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Processors/TFT_eSPI_Generic.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit cb37ae0

Please sign in to comment.