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:
- 
                                              busNumberI2C bus to use 
- 
                                              lcdAddressNumberSlave address the LCD is registered on 
- 
                                              rgbAddressNumberSlave address the RGB backlight is registered on 
Returns:
write
                      
                              - 
                                              msg
Writes a string to the LCD
Parameters:
- 
                                              msgStringstd::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:
- 
                                              directionBooleanTrue 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:
- 
                                              rNumber0-255 value for red 
- 
                                              gNumber0-255 value for green 
- 
                                              bNumber0-255 value for blue 
Returns:
Result of the operation
setCursor
                      
                              - 
                                              row
- 
                                              column
Sets the cursor to specified coordinates
Parameters:
- 
                                              rowNumberRow to set the cursor to 
- 
                                              columnNumberColumn 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:
- 
                                              charSlotNumberthe character slot to write, only 8 are available 
- 
                                              charDataStd::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