Jhd1313m1 Class
- ID: jhd1313m1
- Name: LCD Display Driver for the JHD1313M1 Controller for HD44780-based Displays
- Other Names: Grove RGB LCD
- Category: display
- Manufacturer: seeed adafruit sparkfun
- Link: http://www.seeedstudio.com/depot/Grove-LCD-RGB-Backlight-p-1643.html?cPath=34_36
- Connection: i2c
- Kit: gsk
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.
Item Index
Methods
Jhd1313m1
-
bus
-
lcdAddress
-
rgbAddress
Jhd1313m1 constructor
Parameters:
-
bus
NumberI2C bus to use
-
lcdAddress
NumberSlave address the LCD is registered on
-
rgbAddress
NumberSlave address the RGB backlight is registered on
Returns:
write
-
msg
Writes a string to the LCD
Parameters:
-
msg
Stringstd::string to write to the display; note: only ASCII characters are supported
Returns:
Result of the operation
scroll
-
direction
Makes the LCD scroll text
Parameters:
-
direction
BooleanTrue if scrolling to the right, false otherwise
Returns:
Result of the operation
setColor
-
r
-
g
-
b
Sets the color of the backlight Can be used to change the color even when the backlight is off
Parameters:
-
r
Number0-255 value for red
-
g
Number0-255 value for green
-
b
Number0-255 value for blue
Returns:
Result of the operation
setCursor
-
row
-
column
Sets the cursor to specified coordinates
Parameters:
-
row
NumberRow to set the cursor to
-
column
NumberColumn to set the cursor to
Returns:
Result of the operation
clear
()
Upm_result_t
Clears the display of all characters
Returns:
Result of the operation
home
()
Upm_result_t
Returns to the original coordinates (0,0)
Returns:
Result of the operation
createChar
-
charSlot
-
charData
Create a custom character
Parameters:
-
charSlot
Numberthe character slot to write, only 8 are available
-
charData
Std::vector uint8_tA vector containing 8 bytes making up the character
Returns:
Result of operation
displayOn
()
Upm_result_t
Turn the display on
Returns:
Result of operation
displayOff
()
Upm_result_t
Turn the display off
Returns:
Result of operation
cursorOn
()
Upm_result_t
Turn the cursor on
Returns:
Result of operation
cursorOff
()
Upm_result_t
Turn the cursor off
Returns:
Result of operation
cursorBlinkOn
()
Upm_result_t
Turn cursor blink on
Returns:
Result of operation
cursorBlinkOff
()
Upm_result_t
Turn cursor blink off
Returns:
Result of operation
backlightOn
()
Upm_result_t
Turn backlight on
Returns:
Result of operation
backlightOff
()
Upm_result_t
Turn backlight off
Returns:
Result of operation
scrollDisplayLeft
()
Upm_result_t
Scroll the display left, without changing the character RAM
Returns:
Result of operation
scrollDisplayRight
()
Upm_result_t
Scroll the display right, without changing the character RAM
Returns:
Result of operation
entryLeftToRight
()
Upm_result_t
set the entry mode so that characters are added left to right
Returns:
Result of operation
entryRightToLeft
()
Upm_result_t
set the entry mode so that characters are added right to left
Returns:
Result of operation
autoscrollOn
()
Upm_result_t
Right justify text entered from the cursor
Returns:
Result of operation
autoscrollOff
()
Upm_result_t
Left justify text entered from the cursor
Returns:
Result of operation