This module defines the interface for the ST7735 display library
lcd.fillScreen(ST7735_RED);
lcd.refresh();
lcd.fillScreen(ST7735_CYAN);
lcd.refresh();
lcd.fillScreen(ST7735_BLACK);
lcd.refresh();
lcd.drawLine(10, 10, 10, 100, ST7735_MAGENTA);
lcd.drawLine(20, 20, 10, 100, ST7735_YELLOW);
lcd.drawLine(30, 30, 50, 100, ST7735_WHITE);
lcd.refresh();
lcd.drawPixel(20, 20, ST7735_GREEN);
lcd.refresh();
lcd.drawTriangle(50, 50, 80, 80, 60, 90, ST7735_GREEN);
lcd.refresh();
lcd.drawCircle(100, 110, 10, ST7735_BLUE);
lcd.refresh();
lcd.setTextWrap(0x0);
lcd.setTextColor(ST7735_RED, ST7735_RED);
lcd.setTextSize(1);
lcd.print("Hello World!");
lcd.setTextColor(ST7735_RED, ST7735_YELLOW);
lcd.setTextSize(2);
lcd.print("BIG");
lcd.refresh();
std::cout << "exiting application" << std::endl;
|
| ST7735 (int csLCD, int cSD, int rs, int rst) |
|
std::string | name () |
|
void | initModule () |
|
void | configModule () |
|
void | write (uint8_t value) |
|
void | data (uint8_t value) |
|
void | executeCMDList (const uint8_t *addr) |
|
void | setAddrWindow (uint8_t x0, uint8_t y0, uint8_t x1, uint8_t y1) |
|
void | drawPixel (int16_t x, int16_t y, uint16_t color) |
|
void | refresh () |
|
mraa::Result | lcdCSOn () |
|
mraa::Result | lcdCSOff () |
|
mraa::Result | sdCSOn () |
|
mraa::Result | sdCSOff () |
|
mraa::Result | rsHIGH () |
|
mraa::Result | rsLOW () |
|
| GFX (int16_t w, int16_t h) |
|
virtual | ~GFX () |
|
virtual void | drawLine (int16_t x0, int16_t y0, int16_t x1, int16_t y1, uint16_t color) |
|
virtual void | drawFastVLine (int16_t x, int16_t y, int16_t h, uint16_t color) |
|
virtual void | drawFastHLine (int16_t x, int16_t y, int16_t w, uint16_t color) |
|
virtual void | drawRect (int16_t x, int16_t y, int16_t w, int16_t h, uint16_t color) |
|
virtual void | fillRect (int16_t x, int16_t y, int16_t w, int16_t h, uint16_t color) |
|
virtual void | fillScreen (uint16_t color) |
|
virtual void | invertDisplay (bool i) |
|
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 | drawChar (int16_t x, int16_t y, unsigned char c, uint16_t color, uint16_t bg, uint8_t size) |
|
int16_t | getCursorX (void) const |
|
int16_t | getCursorY (void) const |
|
void | setCursor (int16_t x, int16_t y) |
|
void | setTextColor (uint16_t c) |
|
void | setTextColor (uint16_t c, uint16_t bg) |
|
void | setTextSize (uint8_t s) |
|
void | setTextWrap (bool w) |
|
uint8_t | getRotation (void) const |
|
void | setRotation (uint8_t r) |
|
void | cp437 (bool x) |
|
void | print (std::string msg) |
|
int16_t | width (void) const |
|
int16_t | height (void) const |
|
| GFX (int width, int height) |
|
virtual | ~GFX () |
|
void | drawChar (int16_t x, int16_t y, uint8_t data, uint16_t color, uint16_t bg, uint8_t size) |
|
void | print (std::string msg) |
|
void | fillScreen (uint16_t color) |
|
void | fillRect (int16_t x, int16_t y, int16_t w, int16_t h, uint16_t color) |
|
void | drawFastVLine (int16_t x, int16_t y, int16_t h, uint16_t color) |
|
void | drawLine (int16_t x0, int16_t y0, int16_t x1, int16_t y1, 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 | drawCircle (int16_t x, int16_t y, int16_t r, uint16_t color) |
|
void | setCursor (int16_t x, int16_t y) |
|
void | setTextColor (uint16_t textColor, uint16_t textBGColor) |
|
void | setTextSize (uint8_t size) |
|
void | setTextWrap (uint8_t wrap) |
|
| GFX (int width, int height, uint8_t *screenBuffer, const unsigned char *font) |
|
virtual | ~GFX () |
|
void | drawChar (int16_t x, int16_t y, uint8_t data, uint16_t color, uint16_t bg, uint8_t size) |
|
void | print (std::string msg) |
|
mraa::Result | setPixel (int x, int y, uint16_t color) |
|
void | fillScreen (uint16_t color) |
|
void | fillRect (int16_t x, int16_t y, int16_t w, int16_t h, uint16_t color) |
|
void | drawFastVLine (int16_t x, int16_t y, int16_t h, uint16_t color) |
|
void | drawLine (int16_t x0, int16_t y0, int16_t x1, int16_t y1, 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 | drawCircle (int16_t x, int16_t y, int16_t r, uint16_t color) |
|
void | setCursor (int16_t x, int16_t y) |
|
void | setTextColor (uint16_t textColor, uint16_t textBGColor) |
|
void | setTextSize (uint8_t size) |
|
void | setTextWrap (uint8_t wrap) |
|