API for SSD1308 I2C-controlled OLED displays.
More...
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.
byte[] image = new byte[IntelLogo.length];
for (int i = 0; i < IntelLogo.length; i++)
image[i] = (byte) IntelLogo[i];
lcd.draw(image);
|
synchronized void | delete () |
|
| SSD1308 (int bus, int address) |
|
| SSD1308 (int bus) |
|
int | draw (byte[] data) |
|
int | write (String msg) |
|
int | setCursor (int row, int column) |
|
int | clear () |
|
int | home () |
|
synchronized void | delete () |
|
int | write (int x, int y, String msg) |
|
int | write (String msg) |
|
int | setCursor (int row, int column) |
|
int | clear () |
|
int | home () |
|
String | name () |
|
SSD1308 constructor; calls libmraa initialisation functions
- Parameters
-
bus | I2C bus to use |
address | Slave address the LCD is registered on |
Clears the display of all characters
- Returns
- Result of the operation
Returns to the original coordinates (0,0)
- Returns
- Result of the operation
int setCursor |
( |
int |
row, |
|
|
int |
column |
|
) |
| |
Sets the cursor to specified coordinates
- Parameters
-
row | Row to set the cursor to |
column | Column to set the cursor to |
- Returns
- Result of the operation
Writes a string to the LCD
- Parameters
-
msg | std::string to write to the display; note: only ASCII characters are supported |
- Returns
- Result of the operation
The documentation for this class was generated from the following file:
- /iotdk/jenkins/workspace/upm-doc/build/src/lcd/SSD1308.java