API for SSD1308 i2c controlled OLED displays.
More...
The SSD1308 is a 128x64 Dot matrix OLED/PLED segment driver with controller. This implementation was tested using the Grove LED 128×64 Display module which is an OLED monochrome display.
lcd->
draw(intel_logo, 1024);
delete lcd;
|
| SSD1308 (int bus, int address=0x3C) |
|
| ~SSD1308 () |
|
mraa_result_t | draw (uint8_t *data, int bytes) |
|
mraa_result_t | write (std::string msg) |
|
mraa_result_t | setCursor (int row, int column) |
|
mraa_result_t | clear () |
|
mraa_result_t | home () |
|
| I2CLcd (int bus, int lcdAddress) |
|
mraa_result_t | write (int x, int y, std::string msg) |
|
virtual mraa_result_t | createChar (uint8_t charSlot, uint8_t charData[]) |
|
std::string | name () |
|
|
std::string | m_name |
|
int | m_lcd_control_address |
|
int | m_bus |
|
mraa::I2c | m_i2c_lcd_control |
|
SSD1308 |
( |
int |
bus, |
|
|
int |
address = 0x3C |
|
) |
| |
SSD1308 Constructor, calls libmraa initialisation functions
- Parameters
-
bus | i2c bus to use |
address | the slave address the lcd is registered on |
mraa_result_t draw |
( |
uint8_t * |
data, |
|
|
int |
bytes |
|
) |
| |
Draw an image, see examples/python/make_oled_pic.py for an explanation on how the pixels are mapped to bytes
- Parameters
-
data | the buffer to read |
bytes | the amount of bytes to read from the pointer |
- Returns
- Result of operation
mraa_result_t write |
( |
std::string |
msg | ) |
|
|
virtual |
Write a string to LCD
- Parameters
-
msg | The std::string to write to display, note only ascii chars are supported |
- Returns
- Result of operation
Implements I2CLcd.
mraa_result_t setCursor |
( |
int |
row, |
|
|
int |
column |
|
) |
| |
|
virtual |
Set cursor to a coordinate
- Parameters
-
row | The row to set cursor to |
column | The column to set cursor to |
- Returns
- Result of operation
Implements I2CLcd.
Clear display from characters
- Returns
- Result of operatio
Implements I2CLcd.
Return to coordinate 0,0
- Returns
- Result of operation
Implements I2CLcd.
The documentation for this class was generated from the following files:
- /var/lib/jenkins/workspace/upm-doc-stable/src/lcd/ssd1308.h
- /var/lib/jenkins/workspace/upm-doc-stable/src/lcd/ssd1308.cxx