Move 'writeCommand' and others from protected to pricate (eyes code and others are using these)

This commit is contained in:
Phillip Burgess 2018-11-29 11:59:07 -08:00
parent 03cf2d917e
commit 85cc1d9508
2 changed files with 4 additions and 6 deletions

View File

@ -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. /// 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 { class Adafruit_SPITFT : public Adafruit_GFX {
protected:
public: 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); 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); void invertDisplay(boolean i);
uint16_t color565(uint8_t r, uint8_t g, uint8_t b); 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: protected:
SPIClass *_spi; ///< The SPI device we want to use (set in constructor) 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 dcpinmask; ///< bitmask for turning on/off DC with fast register bitbang IO
#endif #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 uint8_t invertOnCommand = 0, ///< SPI command byte to turn on invert
invertOffCommand = 0; ///< SPI command byte to turn off 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 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

View File

@ -1,5 +1,5 @@
name=Adafruit GFX Library name=Adafruit GFX Library
version=1.3.4 version=1.3.5
author=Adafruit author=Adafruit
maintainer=Adafruit <info@adafruit.com> maintainer=Adafruit <info@adafruit.com>
sentence=Adafruit GFX graphics core library, this is the 'core' class that all our other graphics libraries derive from. sentence=Adafruit GFX graphics core library, this is the 'core' class that all our other graphics libraries derive from.