Skip to content

Commit 6342bfc

Browse files
committed
Update iaw #2657 for SPI inclusion only
1 parent 42b9a4f commit 6342bfc

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

TFT_eSPI.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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)
59405940
SPIClass& TFT_eSPI::getSPIinstance(void)
59415941
{
59425942
return spi;

TFT_eSPI.h

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,9 @@
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

0 commit comments

Comments
 (0)