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.
lcd.setGrayLevel(12);
lcd.draw(SeeedLogo, 96 * 96 / 8);
for (uint8_t i = 0; i < 12; i++) {
lcd.setGrayLevel(i);
lcd.
write(
"Hello World");
}
|
| SSD1327 (int bus, int address=0x3C) |
|
| ~SSD1327 () |
|
mraa::Result | draw (uint8_t *data, int bytes) |
|
void | setGrayLevel (uint8_t level) |
|
mraa::Result | write (std::string msg) |
|
mraa::Result | setCursor (int row, int column) |
|
mraa::Result | clear () |
|
mraa::Result | home () |
|
mraa::Result | write (int x, int y, std::string msg) |
|
std::string | name () |
|
SSD1327 |
( |
int |
bus, |
|
|
int |
address = 0x3C |
|
) |
| |
SSD1327 constructor; calls libmraa initialisation functions
- Parameters
-
bus | I2C bus to use |
address | Slave address the LCD is registered on |
mraa::Result draw |
( |
uint8_t * |
data, |
|
|
int |
bytes |
|
) |
| |
Draws an image; see examples/python/make_oled_pic.py for an explanation of how pixels are mapped to bytes
- Parameters
-
data | Buffer to read |
bytes | Number of bytes to read from the pointer |
- Returns
- Result of the operation
void setGrayLevel |
( |
uint8_t |
level | ) |
|
Sets the gray level for the LCD panel
- Parameters
-
- Returns
- Result of the operation
mraa::Result write |
( |
std::string |
msg | ) |
|
|
virtual |
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
Implements LCD.
mraa::Result setCursor |
( |
int |
row, |
|
|
int |
column |
|
) |
| |
|
virtual |
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
Implements LCD.
Clears the display of all characters
- Returns
- Result of the operation
Implements LCD.
Returns to the original coordinates (0,0)
- Returns
- Result of the operation
Implements LCD.
The documentation for this class was generated from the following files: