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:
-
csLCDNumberLCD chip select pin
-
cSDNumberSD card chip select pin
-
rsNumberData/command pin
-
rstNumberReset 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:
-
valueNumberCommand number
data
-
value
Sends data to an SPI bus (rs must be HIGH)
Parameters:
-
valueNumberCommand number
executeCMDList
-
addr
Executes a set of commands and data
Parameters:
-
addrConst 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:
-
x0NumberFirst coordinate
-
y0NumberFirst coordinate
-
x1NumberSecond coordinate
-
y1NumberSecond coordinate
drawPixel
-
x -
y -
color
Sends a pixel color (RGB) to the chip.
Parameters:
-
xNumberAxis on the horizontal scale
-
yNumberAxis on the vertical scale
-
colorNumberRGB (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