ST7735 Class
- ID: st7735
- Name: SPI-based 262K Color Single-Chip TFT-LCD
- Category: display
- Manufacturer: adafruit
- Link: http://www.adafruit.com/product/358
- Connection: spi
This module defines the interface for the ST7735 display library
Item Index
Methods
Properties
Methods
ST7735
-
csLCD
-
cSD
-
rs
-
rst
Instantiates an ST7735 object
Parameters:
-
csLCD
NumberLCD chip select pin
-
cSD
NumberSD card chip select pin
-
rs
NumberData/command pin
-
rst
NumberReset pin
Returns:
name
()
String
Returns the name of the component
Returns:
initModule
()
Initializes the module GPIOs
configModule
()
Configures the chip via the SPI
write
-
value
Sends a command to an SPI bus (rs must be LOW)
Parameters:
-
value
NumberCommand number
data
-
value
Sends data to an SPI bus (rs must be HIGH)
Parameters:
-
value
NumberCommand number
executeCMDList
-
addr
Executes a set of commands and data
Parameters:
-
addr
Const uint8_t *Pointer to the start of the commands/data section
setAddrWindow
-
x0
-
y0
-
x1
-
y1
Sets the window size inside the screen where pixels data is written.
Parameters:
-
x0
NumberFirst coordinate
-
y0
NumberFirst coordinate
-
x1
NumberSecond coordinate
-
y1
NumberSecond coordinate
drawPixel
-
x
-
y
-
color
Sends a pixel color (RGB) to the chip.
Parameters:
-
x
NumberAxis on the horizontal scale
-
y
NumberAxis on the vertical scale
-
color
NumberRGB (16-bit) color (R[0-4], G[5-10], B[11-15])
refresh
()
Copies the buffer to the chip via the SPI.
lcdCSOn
()
Mraa::Result
LCD chip select is LOW
Returns:
lcdCSOff
()
Mraa::Result
LCD chip select is HIGH
Returns:
sdCSOn
()
Mraa::Result
CD card chip select is LOW
Returns:
sdCSOff
()
Mraa::Result
CD card select is HIGH
Returns:
rsHIGH
()
Mraa::Result
Data select is HIGH
Returns:
rsLOW
()
Mraa::Result
Data select is LOW
Returns:
Properties
m_map
Number
Screens buffer