A monitor on XRCU. More...
#include <Monitor.h>
Public Member Functions | |
| Monitor () | |
| Creates a new monitor. | |
| void | initAll () |
| Initializes the physical monitor and this Monitor object. | |
| void | initFieldsOnly () |
| Initializes the state of member variables. | |
Public Member Functions inherited from Adafruit_ST7735 | |
| Adafruit_ST7735 (int8_t cs, int8_t dc, int8_t mosi, int8_t sclk, int8_t rst) | |
| Adafruit_ST7735 (int8_t cs, int8_t dc, int8_t rst) | |
| Adafruit_ST7735 (SPIClass *spiClass, int8_t cs, int8_t dc, int8_t rst) | |
| void | initB (void) |
| void | initR (uint8_t options=INITR_GREENTAB) |
| void | setRotation (uint8_t m) |
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) | |
| Adafruit_ST77xx (uint16_t w, uint16_t h, int8_t CS, int8_t RS, int8_t RST=-1) | |
| Adafruit_ST77xx (uint16_t w, uint16_t h, SPIClass *spiClass, int8_t CS, int8_t RS, int8_t RST=-1) | |
| void | setAddrWindow (uint16_t x, uint16_t y, uint16_t w, uint16_t h) |
| Set up the specific display hardware's "address window" for subsequent pixel-pushing operations. | |
| void | setRotation (uint8_t r) |
| void | enableDisplay (boolean enable) |
| void | enableTearing (boolean enable) |
| void | enableSleep (boolean enable) |
Public Member Functions inherited from Adafruit_SPITFT | |
| Adafruit_SPITFT (uint16_t w, uint16_t h, int8_t cs, int8_t dc, int8_t mosi, int8_t sck, int8_t rst=-1, int8_t miso=-1) | |
| Adafruit_SPITFT (uint16_t w, uint16_t h, int8_t cs, int8_t dc, int8_t rst=-1) | |
| Adafruit_SPITFT (uint16_t w, uint16_t h, SPIClass *spiClass, int8_t cs, int8_t dc, int8_t rst=-1) | |
| Adafruit_SPITFT (uint16_t w, uint16_t h, tftBusWidth busWidth, int8_t d0, int8_t wr, int8_t dc, int8_t cs=-1, int8_t rst=-1, int8_t rd=-1) | |
| void | initSPI (uint32_t freq=0, uint8_t spiMode=SPI_MODE0) |
| void | initSPI (uint32_t freq, uint8_t spiMode, bool reset) |
| void | setSPISpeed (uint32_t freq) |
| void | startWrite (void) |
| void | endWrite (void) |
| void | sendCommand (uint8_t commandByte, uint8_t *dataBytes, uint8_t numDataBytes) |
| void | sendCommand (uint8_t commandByte, const uint8_t *dataBytes=NULL, uint8_t numDataBytes=0) |
| void | sendCommand16 (uint16_t commandWord, const uint8_t *dataBytes=NULL, uint8_t numDataBytes=0) |
| uint8_t | readcommand8 (uint8_t commandByte, uint8_t index=0) |
| uint16_t | readcommand16 (uint16_t addr) |
| void | writePixel (int16_t x, int16_t y, uint16_t color) |
| void | writePixels (uint16_t *colors, uint32_t len, bool block=true, bool bigEndian=false) |
| void | writeColor (uint16_t color, uint32_t len) |
| void | writeFillRect (int16_t x, int16_t y, int16_t w, int16_t h, uint16_t color) |
| void | writeFastHLine (int16_t x, int16_t y, int16_t w, uint16_t color) |
| void | writeFastVLine (int16_t x, int16_t y, int16_t h, uint16_t color) |
| void | writeFillRectPreclipped (int16_t x, int16_t y, int16_t w, int16_t h, uint16_t color) |
| void | dmaWait (void) |
| bool | dmaBusy (void) const |
| void | swapBytes (uint16_t *src, uint32_t len, uint16_t *dest=NULL) |
| void | drawPixel (int16_t x, int16_t y, uint16_t color) |
| Draw to the screen/framebuffer/etc. Must be overridden in subclass. | |
| void | fillRect (int16_t x, int16_t y, int16_t w, int16_t h, uint16_t color) |
| void | drawFastHLine (int16_t x, int16_t y, int16_t w, uint16_t color) |
| void | drawFastVLine (int16_t x, int16_t y, int16_t h, uint16_t color) |
| void | pushColor (uint16_t color) |
| void | drawRGBBitmap (int16_t x, int16_t y, uint16_t *pcolors, int16_t w, int16_t h) |
| void | invertDisplay (bool i) |
| uint16_t | color565 (uint8_t r, uint8_t g, uint8_t b) |
| void | spiWrite (uint8_t b) |
| void | writeCommand (uint8_t cmd) |
| uint8_t | spiRead (void) |
| void | write16 (uint16_t w) |
| void | writeCommand16 (uint16_t cmd) |
| uint16_t | read16 (void) |
| void | SPI_WRITE16 (uint16_t w) |
| void | SPI_WRITE32 (uint32_t l) |
| void | SPI_CS_HIGH (void) |
| Set the chip-select line HIGH. Does NOT check whether CS pin is set (>=0), that should be handled in calling function. Despite function name, this is used even if the display connection is parallel. | |
| void | SPI_CS_LOW (void) |
| Set the chip-select line LOW. Does NOT check whether CS pin is set (>=0), that should be handled in calling function. Despite function name, this is used even if the display connection is parallel. | |
| void | SPI_DC_HIGH (void) |
| Set the data/command line HIGH (data mode). | |
| void | SPI_DC_LOW (void) |
| Set the data/command line LOW (command mode). | |
| void | drawRGBBitmap (int16_t x, int16_t y, const uint16_t bitmap[], int16_t w, int16_t h) |
| void | drawRGBBitmap (int16_t x, int16_t y, const uint16_t bitmap[], const uint8_t mask[], int16_t w, int16_t h) |
| void | drawRGBBitmap (int16_t x, int16_t y, uint16_t *bitmap, uint8_t *mask, int16_t w, int16_t h) |
Public Member Functions inherited from Adafruit_GFX | |
| Adafruit_GFX (int16_t w, int16_t h) | |
| virtual void | writeLine (int16_t x0, int16_t y0, int16_t x1, int16_t y1, uint16_t color) |
| virtual void | fillScreen (uint16_t color) |
| virtual void | drawLine (int16_t x0, int16_t y0, int16_t x1, int16_t y1, uint16_t color) |
| virtual void | drawRect (int16_t x, int16_t y, int16_t w, int16_t h, uint16_t color) |
| void | drawCircle (int16_t x0, int16_t y0, int16_t r, uint16_t color) |
| void | drawCircleHelper (int16_t x0, int16_t y0, int16_t r, uint8_t cornername, uint16_t color) |
| void | fillCircle (int16_t x0, int16_t y0, int16_t r, uint16_t color) |
| void | fillCircleHelper (int16_t x0, int16_t y0, int16_t r, uint8_t cornername, int16_t delta, uint16_t color) |
| void | drawTriangle (int16_t x0, int16_t y0, int16_t x1, int16_t y1, int16_t x2, int16_t y2, uint16_t color) |
| void | fillTriangle (int16_t x0, int16_t y0, int16_t x1, int16_t y1, int16_t x2, int16_t y2, uint16_t color) |
| void | drawRoundRect (int16_t x0, int16_t y0, int16_t w, int16_t h, int16_t radius, uint16_t color) |
| void | fillRoundRect (int16_t x0, int16_t y0, int16_t w, int16_t h, int16_t radius, uint16_t color) |
| void | drawBitmap (int16_t x, int16_t y, const uint8_t bitmap[], int16_t w, int16_t h, uint16_t color) |
| void | drawBitmap (int16_t x, int16_t y, const uint8_t bitmap[], int16_t w, int16_t h, uint16_t color, uint16_t bg) |
| void | drawBitmap (int16_t x, int16_t y, uint8_t *bitmap, int16_t w, int16_t h, uint16_t color) |
| void | drawBitmap (int16_t x, int16_t y, uint8_t *bitmap, int16_t w, int16_t h, uint16_t color, uint16_t bg) |
| void | drawXBitmap (int16_t x, int16_t y, const uint8_t bitmap[], int16_t w, int16_t h, uint16_t color) |
| void | drawGrayscaleBitmap (int16_t x, int16_t y, const uint8_t bitmap[], int16_t w, int16_t h) |
| void | drawGrayscaleBitmap (int16_t x, int16_t y, uint8_t *bitmap, int16_t w, int16_t h) |
| void | drawGrayscaleBitmap (int16_t x, int16_t y, const uint8_t bitmap[], const uint8_t mask[], int16_t w, int16_t h) |
| void | drawGrayscaleBitmap (int16_t x, int16_t y, uint8_t *bitmap, uint8_t *mask, int16_t w, int16_t h) |
| void | drawRGBBitmap (int16_t x, int16_t y, const uint16_t bitmap[], int16_t w, int16_t h) |
| void | drawRGBBitmap (int16_t x, int16_t y, uint16_t *bitmap, int16_t w, int16_t h) |
| void | drawRGBBitmap (int16_t x, int16_t y, const uint16_t bitmap[], const uint8_t mask[], int16_t w, int16_t h) |
| void | drawRGBBitmap (int16_t x, int16_t y, uint16_t *bitmap, uint8_t *mask, int16_t w, int16_t h) |
| void | drawChar (int16_t x, int16_t y, unsigned char c, uint16_t color, uint16_t bg, uint8_t size) |
| void | drawChar (int16_t x, int16_t y, unsigned char c, uint16_t color, uint16_t bg, uint8_t size_x, uint8_t size_y) |
| void | getTextBounds (const char *string, int16_t x, int16_t y, int16_t *x1, int16_t *y1, uint16_t *w, uint16_t *h) |
| void | getTextBounds (const __FlashStringHelper *s, int16_t x, int16_t y, int16_t *x1, int16_t *y1, uint16_t *w, uint16_t *h) |
| void | getTextBounds (const String &str, int16_t x, int16_t y, int16_t *x1, int16_t *y1, uint16_t *w, uint16_t *h) |
| void | setTextSize (uint8_t s) |
| void | setTextSize (uint8_t sx, uint8_t sy) |
| void | setFont (const GFXfont *f=NULL) |
| void | setCursor (int16_t x, int16_t y) |
| Set text cursor location. | |
| void | setTextColor (uint16_t c) |
| Set text font color with transparant background. | |
| void | setTextColor (uint16_t c, uint16_t bg) |
| Set text font color with custom background color. | |
| void | setTextWrap (bool w) |
| Set whether text that is too long for the screen width should automatically wrap around to the next line (else clip right). | |
| void | cp437 (bool x=true) |
| Enable (or disable) Code Page 437-compatible charset. There was an error in glcdfont.c for the longest time – one character (#176, the 'light shade' block) was missing – this threw off the index of every character that followed it. But a TON of code has been written with the erroneous character indices. By default, the library uses the original 'wrong' behavior and old sketches will still work. Pass 'true' to this function to use correct CP437 character values in your code. | |
| virtual void | write (uint8_t) |
| int16_t | width (void) const |
| Get width of the display, accounting for current rotation. | |
| int16_t | height (void) const |
| Get height of the display, accounting for current rotation. | |
| uint8_t | getRotation (void) const |
| Get rotation setting for display. | |
| int16_t | getCursorX (void) const |
| Get text cursor X location. | |
| int16_t | getCursorY (void) const |
| Get text cursor Y location. | |
| size_t | write (const char *str) |
| virtual size_t | write (const uint8_t *buffer, size_t size) |
| size_t | write (const char *buffer, size_t size) |
Public Member Functions inherited from Print | |
| int | getWriteError () |
| void | clearWriteError () |
| size_t | write (const char *str) |
| size_t | write (const char *buffer, size_t size) |
| virtual int | availableForWrite () |
| size_t | print (const __FlashStringHelper *) |
| size_t | print (const String &) |
| size_t | print (const char[]) |
| size_t | print (char) |
| size_t | print (unsigned char, int=DEC) |
| size_t | print (int, int=DEC) |
| size_t | print (unsigned int, int=DEC) |
| size_t | print (long, int=DEC) |
| size_t | print (unsigned long, int=DEC) |
| size_t | print (long long, int=DEC) |
| size_t | print (unsigned long long, int=DEC) |
| size_t | print (float, int=2) |
| size_t | print (double, int=2) |
| size_t | print (const Printable &) |
| size_t | println (const __FlashStringHelper *) |
| size_t | println (const String &s) |
| size_t | println (const char[]) |
| size_t | println (char) |
| size_t | println (unsigned char, int=DEC) |
| size_t | println (int, int=DEC) |
| size_t | println (unsigned int, int=DEC) |
| size_t | println (long, int=DEC) |
| size_t | println (unsigned long, int=DEC) |
| size_t | println (long long, int=DEC) |
| size_t | println (unsigned long long, int=DEC) |
| size_t | println (float, int=2) |
| size_t | println (double, int=2) |
| size_t | println (const Printable &) |
| size_t | println (void) |
| int | printf (const char *format,...) |
| int | printf (const __FlashStringHelper *format,...) |
| int | vprintf (const __FlashStringHelper *format, va_list ap) |
| int | vprintf (const char *format, va_list ap) |
| virtual void | flush () |
Additional Inherited Members | ||
Protected Member Functions inherited from Adafruit_ST7735 | ||
| void | setTabColor (uint8_t color) | |
Protected Member Functions inherited from Adafruit_ST77xx | ||
| void | begin (uint32_t freq=0) | |
| Display-specific initialization function. | ||
| void | begin (uint32_t freq, bool reset) | |
| void | commonInit (const uint8_t *cmdList) | |
| void | displayInit (const uint8_t *addr) | |
| void | setColRowStart (int8_t col, int8_t row) | |
Protected Member Functions inherited from Adafruit_SPITFT | ||
| void | SPI_MOSI_HIGH (void) | |
| void | SPI_MOSI_LOW (void) | |
| void | SPI_SCK_HIGH (void) | |
| void | SPI_SCK_LOW (void) | |
| bool | SPI_MISO_READ (void) | |
| void | SPI_BEGIN_TRANSACTION (void) | |
| void | SPI_END_TRANSACTION (void) | |
| void | TFT_WR_STROBE (void) | |
| void | TFT_RD_HIGH (void) | |
| void | TFT_RD_LOW (void) | |
Protected Member Functions inherited from Adafruit_GFX | ||
| void | charBounds (unsigned char c, int16_t *x, int16_t *y, int16_t *minx, int16_t *miny, int16_t *maxx, int16_t *maxy) | |
Protected Member Functions inherited from Print | ||
| void | setWriteError (int err=1) | |
Protected Member Functions inherited from Supported_actuator | ||
| Supported_actuator () | ||
| Creates an object of a supported actuator. | ||
Protected Member Functions inherited from Supported_module | ||
| Supported_module () | ||
| Creates an object of a supported module. | ||
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. | ||
Protected Attributes inherited from Adafruit_SPITFT | ||
| struct { | ||
| SPIClass * _spi | ||
| SPI class pointer. | ||
| uint32_t _freq | ||
| SPI bitrate (if no SPI transactions) | ||
| uint32_t _mode | ||
| SPI data mode (transactions or no) | ||
| } | hwspi | |
| Hardware SPI values. | ||
| struct { | ||
| int8_t _mosi | ||
| MOSI pin #. | ||
| int8_t _miso | ||
| MISO pin #. | ||
| int8_t _sck | ||
| SCK pin #. | ||
| } | swspi | |
| Software SPI values. | ||
| struct { | ||
| int8_t _d0 | ||
| Data pin 0 #. | ||
| int8_t _wr | ||
| Write strobe pin #. | ||
| int8_t _rd | ||
| Read strobe pin # (or -1) | ||
| bool wide = 0 | ||
| If true, is 16-bit interface. | ||
| } | tft8 | |
| Parallel interface settings. | ||
| uint8_t | connection | |
| TFT_HARD_SPI, TFT_SOFT_SPI, etc. | ||
| int8_t | _rst | |
| Reset pin # (or -1) | ||
| int8_t | _cs | |
| Chip select pin # (or -1) | ||
| int8_t | _dc | |
| Data/command pin #. | ||
| int16_t | _xstart = 0 | |
| Internal framebuffer X offset. | ||
| int16_t | _ystart = 0 | |
| Internal framebuffer Y offset. | ||
| uint8_t | invertOnCommand = 0 | |
| Command to enable invert mode. | ||
| uint8_t | invertOffCommand = 0 | |
| Command to disable invert mode. | ||
Protected Attributes inherited from Adafruit_GFX | ||
| int16_t | WIDTH | |
| This is the 'raw' display width - never changes. | ||
| int16_t | HEIGHT | |
| This is the 'raw' display height - never changes. | ||
| int16_t | _width | |
| Display width as modified by current rotation. | ||
| int16_t | _height | |
| Display height as modified by current rotation. | ||
| int16_t | cursor_x | |
| x location to start print()ing text | ||
| int16_t | cursor_y | |
| y location to start print()ing text | ||
| uint16_t | textcolor | |
| 16-bit background color for print() | ||
| uint16_t | textbgcolor | |
| 16-bit text color for print() | ||
| uint8_t | textsize_x | |
| Desired magnification in X-axis of text to print() | ||
| uint8_t | textsize_y | |
| Desired magnification in Y-axis of text to print() | ||
| uint8_t | rotation | |
| Display rotation (0 thru 3) | ||
| bool | wrap | |
| If set, 'wrap' text at right edge of display. | ||
| bool | _cp437 | |
| If set, use correct CP437 charset (default is off) | ||
| GFXfont * | gfxFont | |
| Pointer to special font. | ||
A monitor on XRCU.
| void Monitor::initAll | ( | ) |
Initializes the physical monitor and this Monitor object.
This function initializes the monitor with XRCU settings.
| void Monitor::initFieldsOnly | ( | ) |
Initializes the state of member variables.
This function initializes member variables inside this object without performing the ~1.5s start-up interaction with the monitor.