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_t | scroll (bool direction) |
|
mraa_result_t | setColor (uint8_t r, uint8_t g, uint8_t b) |
|
| Lcm1602 (int bus, int address, bool isExpander=true) |
|
| Lcm1602 (uint8_t rs, uint8_t enable, uint8_t d0, uint8_t d1, uint8_t d2, uint8_t d3) |
|
| ~Lcm1602 () |
|
mraa_result_t | write (std::string msg) |
|
mraa_result_t | setCursor (int row, int column) |
|
mraa_result_t | clear () |
|
mraa_result_t | home () |
|
mraa_result_t | createChar (uint8_t charSlot, uint8_t charData[]) |
|
mraa_result_t | displayOn () |
|
mraa_result_t | displayOff () |
|
mraa_result_t | cursorOn () |
|
mraa_result_t | cursorOff () |
|
mraa_result_t | cursorBlinkOn () |
|
mraa_result_t | cursorBlinkOff () |
|
mraa_result_t | scrollDisplayLeft () |
|
mraa_result_t | scrollDisplayRight () |
|
mraa_result_t | entryLeftToRight () |
|
mraa_result_t | entryRightToLeft () |
|
mraa_result_t | autoscrollOn () |
|
mraa_result_t | autoscrollOff () |
|
mraa_result_t | write (int x, int y, std::string msg) |
|
std::string | name () |
|
|
virtual mraa_result_t | command (uint8_t cmd) |
|
virtual mraa_result_t | data (uint8_t data) |
|
mraa_result_t | send (uint8_t value, int mode) |
|
mraa_result_t | write4bits (uint8_t value) |
|
mraa_result_t | expandWrite (uint8_t value) |
|
mraa_result_t | pulseEnable (uint8_t value) |
|
|
uint8_t | m_displayControl |
|
uint8_t | m_entryDisplayMode |
|
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_t scroll |
( |
bool |
direction | ) |
|
Makes the LCD scroll text
- Parameters
-
direction | True if scrolling to the right |
- Returns
- Result of the operation
mraa_result_t 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:
- /var/lib/jenkins/workspace/upm-doc-stable/src/lcd/jhd1313m1.h
- /var/lib/jenkins/workspace/upm-doc-stable/src/lcd/jhd1313m1.cxx