LCD Driver

Documentation for the Grove RGB LCD I2C driver.

class zorg_grove.lcd.LCD(options, connection)[source]

Bases: zorg.driver.Driver

backlight_color(red, green, blue)[source]

Set RGB color for the back light.

backlight_off()[source]

Turns off the back light. Does so by setting the color to black.

backlight_on()[source]

Turns on the back light. Does so by setting the color to white

Turns off the cursor blinking character.

Turns on the cursor blinking character.

clear()[source]

Clears display and returns cursor to the home position (address 0).

cursor_off()[source]

Turns off the cursor.

cursor_on()[source]

Turns on the cursor.

display_off()[source]

Sets Off of all display (D), cursor Off (C) and blink of cursor position character (B).

display_on()[source]

Sets On of all display (D), cursor On (C) and blink of cursor position character (B).

home()[source]

Returns cursor to home position.

print_string(characters)[source]

Prints characters on the LCD. Automatically wraps text to fit 16 character wide display.

set_cursor(col, row)[source]

Sets cursor position.

start()[source]