mirror of
https://github.com/Bodmer/TFT_eSPI.git
synced 2025-07-31 03:07:33 +02:00
Update iaw #2657 for SPI inclusion only
This commit is contained in:
@ -5936,7 +5936,7 @@ void TFT_eSPI::setTextFont(uint8_t f)
|
|||||||
** Function name: getSPIinstance
|
** Function name: getSPIinstance
|
||||||
** Description: Get the instance of the SPI class
|
** Description: Get the instance of the SPI class
|
||||||
***************************************************************************************/
|
***************************************************************************************/
|
||||||
#if !defined (TFT_PARALLEL_8_BIT) && ! defined (RP2040_PIO_INTERFACE)
|
#if !defined (TFT_PARALLEL_8_BIT) && !defined (RP2040_PIO_INTERFACE)
|
||||||
SPIClass& TFT_eSPI::getSPIinstance(void)
|
SPIClass& TFT_eSPI::getSPIinstance(void)
|
||||||
{
|
{
|
||||||
return spi;
|
return spi;
|
||||||
|
@ -29,8 +29,9 @@
|
|||||||
//Standard support
|
//Standard support
|
||||||
#include <Arduino.h>
|
#include <Arduino.h>
|
||||||
#include <Print.h>
|
#include <Print.h>
|
||||||
#include <SPI.h>
|
#if !defined (TFT_PARALLEL_8_BIT) && !defined (RP2040_PIO_INTERFACE)
|
||||||
|
#include <SPI.h>
|
||||||
|
#endif
|
||||||
/***************************************************************************************
|
/***************************************************************************************
|
||||||
** Section 2: Load library and processor specific header files
|
** Section 2: Load library and processor specific header files
|
||||||
***************************************************************************************/
|
***************************************************************************************/
|
||||||
@ -823,8 +824,9 @@ class TFT_eSPI : public Print { friend class TFT_eSprite; // Sprite class has ac
|
|||||||
bool verifySetupID(uint32_t id);
|
bool verifySetupID(uint32_t id);
|
||||||
|
|
||||||
// Global variables
|
// Global variables
|
||||||
|
#if !defined (TFT_PARALLEL_8_BIT) && !defined (RP2040_PIO_INTERFACE)
|
||||||
static SPIClass& getSPIinstance(void); // Get SPI class handle
|
static SPIClass& getSPIinstance(void); // Get SPI class handle
|
||||||
|
#endif
|
||||||
uint32_t textcolor, textbgcolor; // Text foreground and background colours
|
uint32_t textcolor, textbgcolor; // Text foreground and background colours
|
||||||
|
|
||||||
uint32_t bitmap_fg, bitmap_bg; // Bitmap foreground (bit=1) and background (bit=0) colours
|
uint32_t bitmap_fg, bitmap_bg; // Bitmap foreground (bit=1) and background (bit=0) colours
|
||||||
|
Reference in New Issue
Block a user