diff --git a/Adafruit_SPITFT.h b/Adafruit_SPITFT.h index 5973ae0..902892a 100644 --- a/Adafruit_SPITFT.h +++ b/Adafruit_SPITFT.h @@ -35,7 +35,6 @@ /// A heavily optimized SPI display subclass of GFX. Manages SPI bitbanging, transactions, DMA, etc! Despite being called SPITFT, the classic SPI data/command interface is also used by OLEDs. class Adafruit_SPITFT : public Adafruit_GFX { - protected: public: Adafruit_SPITFT(uint16_t w, uint16_t h, int8_t _CS, int8_t _DC, int8_t _MOSI, int8_t _SCLK, int8_t _RST = -1, int8_t _MISO = -1); @@ -88,6 +87,9 @@ class Adafruit_SPITFT : public Adafruit_GFX { void invertDisplay(boolean i); uint16_t color565(uint8_t r, uint8_t g, uint8_t b); + void writeCommand(uint8_t cmd); + void spiWrite(uint8_t v); + uint8_t spiRead(void); protected: SPIClass *_spi; ///< The SPI device we want to use (set in constructor) @@ -116,10 +118,6 @@ class Adafruit_SPITFT : public Adafruit_GFX { dcpinmask; ///< bitmask for turning on/off DC with fast register bitbang IO #endif - void writeCommand(uint8_t cmd); - void spiWrite(uint8_t v); - uint8_t spiRead(void); - uint8_t invertOnCommand = 0, ///< SPI command byte to turn on invert invertOffCommand = 0; ///< SPI command byte to turn off invert int16_t _xstart = 0; ///< Many displays don't have pixels starting at (0,0) of the internal framebuffer, this is the x offset from 0 to align diff --git a/library.properties b/library.properties index 4ba5791..3d03bfd 100644 --- a/library.properties +++ b/library.properties @@ -1,5 +1,5 @@ name=Adafruit GFX Library -version=1.3.4 +version=1.3.5 author=Adafruit maintainer=Adafruit sentence=Adafruit GFX graphics core library, this is the 'core' class that all our other graphics libraries derive from.