pyupm_jhd1313m1 module

class pyupm_jhd1313m1.Jhd1313m1(bus, lcdAddress=62, rgbAddress=98)[source]

Bases: object

API for the JHD1313M1 I2C controller for HD44780-based displays with an RGB backlight, such as a Grove RGB I2C LCD display.

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.

C++ includes: jhd1313m1.hpp

autoscrollOff()[source]

upm_result_t autoscrollOff()

Left justify text entered from the cursor

Result of operation

autoscrollOn()[source]

upm_result_t autoscrollOn()

Right justify text entered from the cursor

Result of operation

backlightOff()[source]

upm_result_t backlightOff()

Turn backlight off

Result of operation

backlightOn()[source]

upm_result_t backlightOn()

Turn backlight on

Result of operation

clear()[source]

upm_result_t clear()

Clears the display of all characters

Result of the operation

createChar(charSlot, charData)[source]

upm_result_t createChar(uint8_t charSlot, std::vector< uint8_t > charData)

Create a custom character

charSlot: the character slot to write, only 8 are available

charData: A vector containing 8 bytes making up the character

Result of operation

cursorBlinkOff()[source]

upm_result_t cursorBlinkOff()

Turn cursor blink off

Result of operation

cursorBlinkOn()[source]

upm_result_t cursorBlinkOn()

Turn cursor blink on

Result of operation

cursorOff()[source]

upm_result_t cursorOff()

Turn the cursor off

Result of operation

cursorOn()[source]

upm_result_t cursorOn()

Turn the cursor on

Result of operation

displayOff()[source]

upm_result_t displayOff()

Turn the display off

Result of operation

displayOn()[source]

upm_result_t displayOn()

Turn the display on

Result of operation

entryLeftToRight()[source]

upm_result_t entryLeftToRight()

set the entry mode so that characters are added left to right

Result of operation

entryRightToLeft()[source]

upm_result_t entryRightToLeft()

set the entry mode so that characters are added right to left

Result of operation

home()[source]

upm_result_t home()

Returns to the original coordinates (0,0)

Result of the operation

scroll(direction)[source]

upm_result_t scroll(bool direction)

Makes the LCD scroll text

direction: True if scrolling to the right, false otherwise

Result of the operation

scrollDisplayLeft()[source]

upm_result_t scrollDisplayLeft()

Scroll the display left, without changing the character RAM

Result of operation

scrollDisplayRight()[source]

upm_result_t scrollDisplayRight()

Scroll the display right, without changing the character RAM

Result of operation

setColor(r, g, b)[source]

upm_result_t setColor(uint8_t r, uint8_t g, uint8_t b)

Sets the color of the backlight Can be used to change the color even when the backlight is off

r: 0-255 value for red

g: 0-255 value for green

b: 0-255 value for blue

Result of the operation

setCursor(row, column)[source]

upm_result_t setCursor(int row, int column)

Sets the cursor to specified coordinates

row: Row to set the cursor to

column: Column to set the cursor to

Result of the operation

write(msg)[source]

upm_result_t write(std::string msg)

Writes a string to the LCD

msg: std::string to write to the display; note: only ASCII characters are supported

Result of the operation

class pyupm_jhd1313m1.SwigPyIterator(*args, **kwargs)[source]

Bases: object

advance(n)[source]
copy()[source]
decr(n=1)[source]
distance(x)[source]
equal(x)[source]
incr(n=1)[source]
next()[source]
previous()[source]
value()[source]
class pyupm_jhd1313m1.byteVector(*args)[source]

Bases: object

append(x)[source]
assign(n, x)[source]
back()[source]
begin()[source]
capacity()[source]
clear()[source]
empty()[source]
end()[source]
erase(*args)[source]
front()[source]
get_allocator()[source]
insert(*args)[source]
iterator()[source]
pop()[source]
pop_back()[source]
push_back(x)[source]
rbegin()[source]
rend()[source]
reserve(n)[source]
resize(*args)[source]
size()[source]
swap(v)[source]
class pyupm_jhd1313m1.doubleVector(*args)[source]

Bases: object

append(x)[source]
assign(n, x)[source]
back()[source]
begin()[source]
capacity()[source]
clear()[source]
empty()[source]
end()[source]
erase(*args)[source]
front()[source]
get_allocator()[source]
insert(*args)[source]
iterator()[source]
pop()[source]
pop_back()[source]
push_back(x)[source]
rbegin()[source]
rend()[source]
reserve(n)[source]
resize(*args)[source]
size()[source]
swap(v)[source]
class pyupm_jhd1313m1.floatVector(*args)[source]

Bases: object

append(x)[source]
assign(n, x)[source]
back()[source]
begin()[source]
capacity()[source]
clear()[source]
empty()[source]
end()[source]
erase(*args)[source]
front()[source]
get_allocator()[source]
insert(*args)[source]
iterator()[source]
pop()[source]
pop_back()[source]
push_back(x)[source]
rbegin()[source]
rend()[source]
reserve(n)[source]
resize(*args)[source]
size()[source]
swap(v)[source]
class pyupm_jhd1313m1.int16Vector(*args)[source]

Bases: object

append(x)[source]
assign(n, x)[source]
back()[source]
begin()[source]
capacity()[source]
clear()[source]
empty()[source]
end()[source]
erase(*args)[source]
front()[source]
get_allocator()[source]
insert(*args)[source]
iterator()[source]
pop()[source]
pop_back()[source]
push_back(x)[source]
rbegin()[source]
rend()[source]
reserve(n)[source]
resize(*args)[source]
size()[source]
swap(v)[source]
class pyupm_jhd1313m1.intVector(*args)[source]

Bases: object

append(x)[source]
assign(n, x)[source]
back()[source]
begin()[source]
capacity()[source]
clear()[source]
empty()[source]
end()[source]
erase(*args)[source]
front()[source]
get_allocator()[source]
insert(*args)[source]
iterator()[source]
pop()[source]
pop_back()[source]
push_back(x)[source]
rbegin()[source]
rend()[source]
reserve(n)[source]
resize(*args)[source]
size()[source]
swap(v)[source]