SSD1351 Class
- ID: ssd1351
- Name: SPI-based OLED Display
- Category: display
- Manufacturer: adafruit
- Link: http://www.adafruit.com/products/1431
- Connection: spi
This module defines the interface for the SSD1351 display library. It was tested with the Adafruit 1.5" OLED Display, but should work with any SSD1351 display running in SPI mode.
On the Intel Edison don't forget to disable SPI Power Management (PM) for this driver to work, you can find more details on this topic here: http://iotdk.intel.com/docs/master/mraa/edison.html

Item Index
Methods
SSD1351
-
oc -
dc -
rst
Instantiates an SSD1351 object
Parameters:
-
ocNumberLCD chip select pin
-
dcNumberData/command pin
-
rstNumberReset pin
Returns:
name
()
String
Returns the name of the component
Returns:
writeCommand
-
value
Sends a command to an SPI bus
Parameters:
-
valueNumberCommand
writeData
-
value
Sends data to an SPI bus
Parameters:
-
valueNumberData
drawPixel
-
x -
y -
color
Sends a pixel color (RGB) to the display buffer or 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 bus
ocLow
()
Set OLED chip select LOW
ocHigh
()
Set OLED chip select HIGH
dcLow
()
Data select LOW
dcHigh
()
Data select HIGH
useMemoryMap
-
var
Use memory mapped (buffered) writes to the display
Parameters:
-
varBooleantrue for yes (default), false for no