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.setCursor(1,2);
lcd.write("Hello World");
System.out.println("Sleeping for 5 seconds");
Thread.sleep(5000);
lcd.clear();
|
synchronized void | delete () |
|
| Jhd1313m1 (int bus, int lcdAddress, int rgbAddress) |
|
| Jhd1313m1 (int bus, int lcdAddress) |
|
| Jhd1313m1 (int bus) |
|
int | scroll (boolean direction) |
|
int | setColor (short r, short g, short b) |
|
synchronized void | delete () |
|
| Lcm1602 (int bus, int address, boolean isExpander, short numColumns, short numRows) |
|
| Lcm1602 (int bus, int address, boolean isExpander, short numColumns) |
|
| Lcm1602 (int bus, int address, boolean isExpander) |
|
| Lcm1602 (int bus, int address) |
|
| Lcm1602 (short rs, short enable, short d0, short d1, short d2, short d3, short numColumns, short numRows) |
|
| Lcm1602 (short rs, short enable, short d0, short d1, short d2, short d3, short numColumns) |
|
| Lcm1602 (short rs, short enable, short d0, short d1, short d2, short d3) |
|
int | write (String msg) |
|
int | setCursor (int row, int column) |
|
int | clear () |
|
int | home () |
|
int | createChar (short charSlot, byte[] charData) |
|
int | displayOn () |
|
int | displayOff () |
|
int | cursorOn () |
|
int | cursorOff () |
|
int | cursorBlinkOn () |
|
int | cursorBlinkOff () |
|
int | scrollDisplayLeft () |
|
int | scrollDisplayRight () |
|
int | entryLeftToRight () |
|
int | entryRightToLeft () |
|
int | autoscrollOn () |
|
int | autoscrollOff () |
|
synchronized void | delete () |
|
int | write (int x, int y, String msg) |
|
int | write (String msg) |
|
int | setCursor (int row, int column) |
|
int | clear () |
|
int | home () |
|
String | name () |
|
Jhd1313m1 |
( |
int |
bus, |
|
|
int |
lcdAddress, |
|
|
int |
rgbAddress |
|
) |
| |
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 |
int scroll |
( |
boolean |
direction | ) |
|
Makes the LCD scroll text
- Parameters
-
direction | True if scrolling to the right |
- Returns
- Result of the operation
int setColor |
( |
short |
r, |
|
|
short |
g, |
|
|
short |
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 file:
- /var/lib/jenkins/workspace/upm-doc-stable/build-33/src/lcd/Jhd1313m1.java