|
Adafruit ST77XX Display Library
|
Subclass of ST77XX type display for ST7789 TFT Driver. More...
#include <Adafruit_ST7789.h>
Public Member Functions | |
| Adafruit_ST7789 (int8_t cs, int8_t dc, int8_t mosi, int8_t sclk, int8_t rst=-1) | |
| Instantiate Adafruit ST7789 driver with software SPI. More... | |
| Adafruit_ST7789 (int8_t cs, int8_t dc, int8_t rst) | |
| Instantiate Adafruit ST7789 driver with hardware SPI. More... | |
| Adafruit_ST7789 (SPIClass *spiClass, int8_t cs, int8_t dc, int8_t rst) | |
| Instantiate Adafruit ST7789 driver with selectable hardware SPI. More... | |
| void | setRotation (uint8_t m) |
| Set origin of (0,0) and orientation of TFT display. More... | |
| void | init (uint16_t width, uint16_t height, uint8_t spiMode=SPI_MODE0) |
| Initialization code common to all ST7789 displays. More... | |
Public Member Functions inherited from Adafruit_ST77xx | |
| Adafruit_ST77xx (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) | |
| Instantiate Adafruit ST77XX driver with software SPI. More... | |
| Adafruit_ST77xx (uint16_t w, uint16_t h, int8_t CS, int8_t RS, int8_t RST=-1) | |
| Instantiate Adafruit ST77XX driver with hardware SPI. More... | |
| Adafruit_ST77xx (uint16_t w, uint16_t h, SPIClass *spiClass, int8_t CS, int8_t RS, int8_t RST=-1) | |
| Instantiate Adafruit ST77XX driver with selectable hardware SPI. More... | |
| void | setAddrWindow (uint16_t x, uint16_t y, uint16_t w, uint16_t h) |
| SPI displays set an address window rectangle for blitting pixels. More... | |
| void | setRotation (uint8_t r) |
| Set origin of (0,0) and orientation of TFT display. More... | |
| void | enableDisplay (boolean enable) |
| Change whether display is on or off. More... | |
| void | enableTearing (boolean enable) |
| Change whether TE pin output is on or off. More... | |
| void | enableSleep (boolean enable) |
| Change whether sleep mode is on or off. More... | |
Protected Attributes | |
| uint8_t | _colstart2 = 0 |
| Offset from the right. | |
| uint8_t | _rowstart2 = 0 |
| Offset from the bottom. | |
Protected Attributes inherited from Adafruit_ST77xx | |
| uint8_t | _colstart = 0 |
| Some displays need this changed to offset. | |
| uint8_t | _rowstart = 0 |
| Some displays need this changed to offset. | |
| uint8_t | spiMode = SPI_MODE0 |
| Certain display needs MODE3 instead. | |
Additional Inherited Members | |
Protected Member Functions inherited from Adafruit_ST77xx | |
| void | begin (uint32_t freq=0) |
| Initialize ST77xx chip. Connects to the ST77XX over SPI and sends initialization procedure commands. More... | |
| void | commonInit (const uint8_t *cmdList) |
| Initialization code common to all ST77XX displays. More... | |
| void | displayInit (const uint8_t *addr) |
| Companion code to the initiliazation tables. Reads and issues a series of LCD commands stored in PROGMEM byte array. More... | |
| void | setColRowStart (int8_t col, int8_t row) |
| Set origin of (0,0) of display with offsets. More... | |
Subclass of ST77XX type display for ST7789 TFT Driver.
| Adafruit_ST7789::Adafruit_ST7789 | ( | int8_t | cs, |
| int8_t | dc, | ||
| int8_t | mosi, | ||
| int8_t | sclk, | ||
| int8_t | rst = -1 |
||
| ) |
Instantiate Adafruit ST7789 driver with software SPI.
| cs | Chip select pin # |
| dc | Data/Command pin # |
| mosi | SPI MOSI pin # |
| sclk | SPI Clock pin # |
| rst | Reset pin # (optional, pass -1 if unused) |
| Adafruit_ST7789::Adafruit_ST7789 | ( | int8_t | cs, |
| int8_t | dc, | ||
| int8_t | rst | ||
| ) |
Instantiate Adafruit ST7789 driver with hardware SPI.
| cs | Chip select pin # |
| dc | Data/Command pin # |
| rst | Reset pin # (optional, pass -1 if unused) |
| Adafruit_ST7789::Adafruit_ST7789 | ( | SPIClass * | spiClass, |
| int8_t | cs, | ||
| int8_t | dc, | ||
| int8_t | rst | ||
| ) |
Instantiate Adafruit ST7789 driver with selectable hardware SPI.
| spiClass | Pointer to an SPI device to use (e.g. &SPI1) |
| cs | Chip select pin # |
| dc | Data/Command pin # |
| rst | Reset pin # (optional, pass -1 if unused) |
| void Adafruit_ST7789::setRotation | ( | uint8_t | m | ) |
Set origin of (0,0) and orientation of TFT display.
| m | The index for rotation, from 0-3 inclusive |
| void Adafruit_ST7789::init | ( | uint16_t | width, |
| uint16_t | height, | ||
| uint8_t | mode = SPI_MODE0 |
||
| ) |
Initialization code common to all ST7789 displays.
| width | Display width |
| height | Display height |
| mode | SPI data mode; one of SPI_MODE0, SPI_MODE1, SPI_MODE2 or SPI_MODE3 (do NOT pass the numbers 0,1,2 or 3 – use the defines only, the values are NOT the same!) |
1.8.13