API for SSD1327 I2C-controlled OLED displays.
More...
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.
byte[] image = new byte[SeeedLogo.length];
for (int i = 0; i < SeeedLogo.length; i++)
image[i] = (byte) SeeedLogo[i];
lcd.draw(image);
for (short i = 0; i < 12; i++) {
lcd.setCursor(i, 0);
lcd.setGrayLevel(i);
lcd.write("Hello World");
}
|
synchronized void | delete () |
|
| SSD1327 (int bus, int address) |
|
| SSD1327 (int bus) |
|
int | draw (byte[] data) |
|
void | setGrayLevel (short level) |
|
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 () |
|
SSD1327 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
void setGrayLevel |
( |
short |
level | ) |
|
Sets the gray level for the LCD panel
- Parameters
-
- 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:
- /var/lib/jenkins/workspace/upm-doc-stable/build-33/src/lcd/SSD1327.java