C++ API for LCM1602 i2c controller for HD44780 based displays.
More...
This supports all sizes of HD44780 displays from 16x2 to 4x20, the controller has no idea of the actual display hardware so will let you write further than you can see. These displays with such controllers are available from various manufacturers with different i2c addresses. The adafruit TC1602A-01T seems to the best documented example.
lcd->
write(
"Hello World");
|
| Lcm1602 (int bus, int address) |
|
| ~Lcm1602 () |
|
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 | i2Cmd (mraa_i2c_context ctx, uint8_t value) |
|
virtual mraa_result_t | i2cReg (mraa_i2c_context ctx, int deviceAdress, int addr, uint8_t data) |
|
virtual mraa_result_t | i2cData (mraa_i2c_context ctx, uint8_t value) |
|
mraa_result_t | close () |
|
std::string | name () |
|
|
std::string | m_name |
|
int | m_lcd_control_address |
|
int | m_bus |
|
mraa_i2c_context | m_i2c_lcd_control |
|
Lcm1602 Constructor, calls libmraa initialisation functions
- Parameters
-
bus | i2c bus to use |
address | the slave address the lcd is registered on |
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/src/lcd/lcm1602.h
- /var/lib/jenkins/workspace/upm-doc/src/lcd/lcm1602.cxx