API for the 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 it lets you write farther than you can see. These displays with such controllers are available from various manufacturers with different I2C addresses. Adafruit* TC1602A-01T seems to be a well-documented example. The driver also supports parallel GPIO connections directly to the HD44780 in case you are not using an I2C expander/backpack.
|
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 () |
|
Lcm1602 |
( |
int |
bus, |
|
|
int |
address, |
|
|
boolean |
isExpander, |
|
|
short |
numColumns, |
|
|
short |
numRows |
|
) |
| |
Lcm1602 constructor; calls libmraa initialisation functions
- Parameters
-
bus | I2C bus to use |
address | Slave address the LCD is registered on |
isExpander | True if we are dealing with an I2C expander, false otherwise. Default is true. |
Lcm1602 |
( |
short |
rs, |
|
|
short |
enable, |
|
|
short |
d0, |
|
|
short |
d1, |
|
|
short |
d2, |
|
|
short |
d3, |
|
|
short |
numColumns, |
|
|
short |
numRows |
|
) |
| |
Lcm1602 alternate constructor, used for GPIO based HD44780 controllers supporting RS, Enable, and 4 data pins in 4-bit mode.
- Parameters
-
rs | Register select pin |
enable | Enable pin |
d0 | Data 0 pin |
d1 | Data 1 pin |
d2 | Data 2 pin |
d3 | Data 3 pin |
Left justify text entered from the cursor
- Returns
- Result of operation
Right justify text entered from the cursor
- Returns
- Result of operation
Clears the display of all characters
- Returns
- Result of the operation
int createChar |
( |
short |
charSlot, |
|
|
byte[] |
charData |
|
) |
| |
Create a custom character
- Parameters
-
charSlot | the character slot to write, only 8 are available |
charData | The character data (8 bytes) making up the character |
- Returns
- Result of operation
Turn cursor blink off
- Returns
- Result of operation
Turn cursor blink on
- Returns
- Result of operation
Turn the cursor off
- Returns
- Result of operation
Turn the cursor on
- Returns
- Result of operation
Turn the display off
- Returns
- Result of operation
Turn the display on
- Returns
- Result of operation
set the entry mode so that characters are added left to right
- Returns
- Result of operation
set the entry mode so that characters are added right to left
- Returns
- Result of operation
Returns to the original coordinates (0,0)
- Returns
- Result of the operation
int scrollDisplayLeft |
( |
| ) |
|
Scroll the display left, without changing the character RAM
- Returns
- Result of operation
int scrollDisplayRight |
( |
| ) |
|
Scroll the display right, without changing the character RAM
- Returns
- Result of operation
int setCursor |
( |
int |
row, |
|
|
int |
column |
|
) |
| |
Sets the cursor to specified coordinates
- Parameters
-
row | Row to set the cursor to |
column | Column to set the cursor to |
- Returns
- Result of the operation
Writes a string to the LCD
- Parameters
-
msg | std::string to write to the display; note: only ASCII characters are supported |
- 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/Lcm1602.java