|
upm
0.4.1
Sensor/Actuator repository for libmraa (v0.8.0)
|
API for the ST7735 LCD. More...
This module defines the interface for the ST7735 display library
Public Member Functions | |
| synchronized void | delete () |
| ST7735 (short csLCD, short cSD, short rs, short rst) | |
| String | name () |
| void | initModule () |
| void | configModule () |
| void | write (short value) |
| void | data (short value) |
| void | executeCMDList (byte[] addr) |
| void | setAddrWindow (short x0, short y0, short x1, short y1) |
| void | drawPixel (short x, short y, int color) |
| void | refresh () |
| int | lcdCSOn () |
| int | lcdCSOff () |
| int | sdCSOn () |
| int | sdCSOff () |
| int | rsHIGH () |
| int | rsLOW () |
Public Member Functions inherited from GFX | |
| synchronized void | delete () |
| void | setAddrWindow (short x0, short y0, short x1, short y1) |
| void | drawPixel (short x, short y, int color) |
| void | refresh () |
| void | drawChar (short x, short y, short data, int color, int bg, short size) |
| void | print (String msg) |
| int | setPixel (int x, int y, int color) |
| void | fillScreen (int color) |
| void | fillRect (short x, short y, short w, short h, int color) |
| void | drawFastVLine (short x, short y, short h, int color) |
| void | drawLine (short x0, short y0, short x1, short y1, int color) |
| void | drawTriangle (short x0, short y0, short x1, short y1, short x2, short y2, int color) |
| void | drawCircle (short x, short y, short r, int color) |
| void | setCursor (short x, short y) |
| void | setTextColor (int textColor, int textBGColor) |
| void | setTextSize (short size) |
| void | setTextWrap (short wrap) |
| void | setM_height (int value) |
| int | getM_height () |
| void | setM_width (int value) |
| int | getM_width () |
| void | setM_textSize (int value) |
| int | getM_textSize () |
| void | setM_textColor (int value) |
| int | getM_textColor () |
| void | setM_textBGColor (int value) |
| int | getM_textBGColor () |
| void | setM_cursorX (int value) |
| int | getM_cursorX () |
| void | setM_cursorY (int value) |
| int | getM_cursorY () |
| void | setM_wrap (int value) |
| int | getM_wrap () |
| ST7735 | ( | short | csLCD, |
| short | cSD, | ||
| short | rs, | ||
| short | rst | ||
| ) |
Instantiates an ST7735 object
| csLCD | LCD chip select pin |
| cSD | SD card chip select pin |
| rs | Data/command pin |
| rst | Reset pin |
| void configModule | ( | ) |
Configures the chip via the SPI
| void data | ( | short | value | ) |
Sends data to an SPI bus (rs must be HIGH)
| value | Command number |
| void drawPixel | ( | short | x, |
| short | y, | ||
| int | color | ||
| ) |
Sends a pixel color (RGB) to the chip.
| x | Axis on the horizontal scale |
| y | Axis on the vertical scale |
| color | RGB (16-bit) color (R[0-4], G[5-10], B[11-15]) |
| void executeCMDList | ( | byte[] | addr | ) |
Executes a set of commands and data
| addr | Pointer to the start of the commands/data section |
| void initModule | ( | ) |
Initializes the module GPIOs
| int lcdCSOff | ( | ) |
LCD chip select is HIGH
| int lcdCSOn | ( | ) |
LCD chip select is LOW
| String name | ( | ) |
Returns the name of the component
| void refresh | ( | ) |
Copies the buffer to the chip via the SPI.
| int rsHIGH | ( | ) |
Data select is HIGH
| int rsLOW | ( | ) |
Data select is LOW
| int sdCSOff | ( | ) |
CD card select is HIGH
| int sdCSOn | ( | ) |
CD card chip select is LOW
| void setAddrWindow | ( | short | x0, |
| short | y0, | ||
| short | x1, | ||
| short | y1 | ||
| ) |
Sets the window size inside the screen where pixels data is written.
| x0 | First coordinate |
| y0 | First coordinate |
| x1 | Second coordinate |
| y1 | Second coordinate |
| void write | ( | short | value | ) |
Sends a command to an SPI bus (rs must be LOW)
| value | Command number |


1.8.9.1