API for the JHD1313M1 I2C controller for HD44780-based displays with an RGB backlight, such as a Grove RGB I2C LCD display.
More...
JHD1313M1 has two I2C addreses: one belongs to a controller, very similar to the upm::Lcm1602 LCD driver, that controls the HD44780-based display, and the other controls only the backlight. This module was tested with the Seeed Grove LCD RGB Backlight v2.0 display that requires 5V to operate.
lcd->
write(
"Hello World");
lcd->
write(
"Hello World");
printf("Sleeping for 5 seconds\n");
sleep(5);
delete lcd;
|
| Jhd1313m1 (int bus, int lcdAddress=0x3E, int rgbAddress=0x62) |
|
| ~Jhd1313m1 () |
|
mraa::Result | scroll (bool direction) |
|
mraa::Result | setColor (uint8_t r, uint8_t g, uint8_t b) |
|
| Lcm1602 (int bus, int address, bool isExpander=true, uint8_t numColumns=16, uint8_t numRows=4) |
|
| Lcm1602 (uint8_t rs, uint8_t enable, uint8_t d0, uint8_t d1, uint8_t d2, uint8_t d3, uint8_t numColumns=16, uint8_t numRows=4) |
|
| ~Lcm1602 () |
|
mraa::Result | write (std::string msg) |
|
mraa::Result | setCursor (int row, int column) |
|
mraa::Result | clear () |
|
mraa::Result | home () |
|
mraa::Result | createChar (uint8_t charSlot, uint8_t charData[]) |
|
mraa::Result | displayOn () |
|
mraa::Result | displayOff () |
|
mraa::Result | cursorOn () |
|
mraa::Result | cursorOff () |
|
mraa::Result | cursorBlinkOn () |
|
mraa::Result | cursorBlinkOff () |
|
mraa::Result | scrollDisplayLeft () |
|
mraa::Result | scrollDisplayRight () |
|
mraa::Result | entryLeftToRight () |
|
mraa::Result | entryRightToLeft () |
|
mraa::Result | autoscrollOn () |
|
mraa::Result | autoscrollOff () |
|
mraa::Result | write (int x, int y, std::string msg) |
|
std::string | name () |
|
|
virtual mraa::Result | command (uint8_t cmd) |
|
virtual mraa::Result | data (uint8_t data) |
|
mraa::Result | send (uint8_t value, int mode) |
|
mraa::Result | write4bits (uint8_t value) |
|
mraa::Result | expandWrite (uint8_t value) |
|
mraa::Result | pulseEnable (uint8_t value) |
|
|
uint8_t | m_displayControl |
|
uint8_t | m_entryDisplayMode |
|
uint8_t | m_numColumns |
|
uint8_t | m_numRows |
|
int | m_lcd_control_address |
|
mraa::I2c * | m_i2c_lcd_control |
|
std::string | m_name |
|
Jhd1313m1 |
( |
int |
bus, |
|
|
int |
lcdAddress = 0x3E , |
|
|
int |
rgbAddress = 0x62 |
|
) |
| |
Jhd1313m1 constructor
- Parameters
-
bus | I2C bus to use |
address | Slave address the LCD is registered on |
address | Slave address the RGB backlight is registered on |
mraa::Result scroll |
( |
bool |
direction | ) |
|
Makes the LCD scroll text
- Parameters
-
direction | True if scrolling to the right |
- Returns
- Result of the operation
mraa::Result setColor |
( |
uint8_t |
r, |
|
|
uint8_t |
g, |
|
|
uint8_t |
b |
|
) |
| |
Sets the color of the backlight
- Parameters
-
r | 0-255 value for red |
g | 0-255 value for green |
b | 0-255 value for blue |
- Returns
- Result of the operation
The documentation for this class was generated from the following files:
- /iotdk/jenkins/workspace/upm-doc-stable/src/lcd/jhd1313m1.h
- /iotdk/jenkins/workspace/upm-doc-stable/src/lcd/jhd1313m1.cxx