SSD1327 Class
- ID: ssd1327
- Name: OLED Display
- Other Names: Grove OLED Display 1.12"
- Category: display
- Manufacturer: seeed adafruit
- Link: http://wiki.seeed.cc/Grove-OLED_Display_1.12inch/
- Connection: i2c
SSD1327 is a 96x96 dot-matrix OLED/PLED segment driver with a controller. This implementation was tested using the Grove LED 96*96 Display module, which is an OLED monochrome display.
Methods
SSD1327
-
bus
-
address
SSD1327 constructor; calls libmraa initialisation functions
Parameters:
-
bus
NumberI2C bus to use
-
address
NumberSlave address the LCD is registered on
Returns:
draw
-
data
-
bytes
Draws an image; see examples/python/make_oled_pic.py for an explanation of how pixels are mapped to bytes
Parameters:
-
data
Uint8_t *Buffer to read
-
bytes
NumberNumber of bytes to read from the pointer
Returns:
Result of the operation
setGrayLevel
-
level
Sets the gray level for the LCD panel
Parameters:
-
level
Numberlevel from 0 to 255
write
-
msg
Writes a string to the LCD
Parameters:
-
msg
Stringstd::string to write to the display; note: only ASCII characters are supported
Returns:
Result of the operation
setCursor
-
row
-
column
Sets the cursor to specified coordinates
Parameters:
-
row
NumberRow to set the cursor to
-
column
NumberColumn to set the cursor to
Returns:
Result of the operation
clear
()
Mraa::Result
Clears the display of all characters
Returns:
Result of the operation
home
()
Mraa::Result
Returns to the original coordinates (0,0)
Returns:
Result of the operation