mirror of
https://github.com/adafruit/Adafruit-GFX-Library.git
synced 2024-10-03 18:18:46 -04:00
Move 'writeCommand' and others from protected to pricate (eyes code and others are using these)
This commit is contained in:
parent
03cf2d917e
commit
85cc1d9508
@ -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
|
||||||
|
@ -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.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user