SSD1308 Class
- ID: ssd1308
- Name: OLED Display
- Other Names: Grove OLED Display 0.96"
- Category: display
- Manufacturer: seeed adafruit
- Link: http://wiki.seeed.cc/Grove-OLED_Display_0.96inch/
- Link: http://www.seeedstudio.com/wiki/Grove_-_OLED_Display_0.96%22
- Connection: i2c
SSD1308 is a 128x64 dot-matrix OLED/PLED segment driver with a controller. This implementation was tested using the Grove LED 128*64 Display module, which is an OLED monochrome display.
Methods
SSD1308
-
bus
-
address
SSD1308 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
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