File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed
Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -5936,7 +5936,7 @@ void TFT_eSPI::setTextFont(uint8_t f)
59365936** Function name: getSPIinstance
59375937** Description: Get the instance of the SPI class
59385938***************************************************************************************/
5939- #if !defined (TFT_PARALLEL_8_BIT) && ! defined (RP2040_PIO_INTERFACE)
5939+ #if !defined (TFT_PARALLEL_8_BIT) && !defined (RP2040_PIO_INTERFACE)
59405940SPIClass& TFT_eSPI::getSPIinstance (void )
59415941{
59425942 return spi;
Original file line number Diff line number Diff line change 2929// Standard support
3030#include < Arduino.h>
3131#include < Print.h>
32- #include < SPI.h>
33-
32+ #if !defined (TFT_PARALLEL_8_BIT) && !defined (RP2040_PIO_INTERFACE)
33+ #include < SPI.h>
34+ #endif
3435/* **************************************************************************************
3536** Section 2: Load library and processor specific header files
3637***************************************************************************************/
@@ -823,8 +824,9 @@ class TFT_eSPI : public Print { friend class TFT_eSprite; // Sprite class has ac
823824 bool verifySetupID (uint32_t id);
824825
825826 // Global variables
827+ #if !defined (TFT_PARALLEL_8_BIT) && !defined (RP2040_PIO_INTERFACE)
826828 static SPIClass& getSPIinstance (void ); // Get SPI class handle
827-
829+ # endif
828830 uint32_t textcolor, textbgcolor; // Text foreground and background colours
829831
830832 uint32_t bitmap_fg, bitmap_bg; // Bitmap foreground (bit=1) and background (bit=0) colours
You can’t perform that action at this time.
0 commit comments