This library is designed to support a MicroPython interface for I2C 16x2 LCD character screens.
- Raspberry Pi Pico
import i2c_lcd
from machine import I2C
i2c = I2C(0)
d = i2c_lcd.Display(i2c)
# Clear the screen
d.clear()
# Write "Hello World" to the screen
d.write("Hello World")
# Move the cursor to the top left corner
d.move(0, 0)
# Set the backlight to red
d.color(255, 0, 0)
This module supports writing to, clearing and refreshing the LCD screen, among other functions.
Prints text to LCD screen at the location of the cursor.
Enables lcd to scroll text as typed.
Sets cursor visibility.
Sets blink visibility.
Sets display state (on/off).
Returns the cursor to the (0,0) location on screen
Moves the cursor to (col,row)
Changes the color of the LCD Backlight to (r,g,b)