Skip to content

🖥 MicroPython Library for I2C 2x16 LCD Screens

License

Notifications You must be signed in to change notification settings

ubidefeo/micropython-i2c-lcd

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MicroPython I2C 16x2 LCD Screen

This library is designed to support a MicroPython interface for i2c LCD character screens. It's designed around the Pycom implementation of MicroPython so will need to be tweaked to work for CircuitPython.

Compatible Displays

RGB

Grove LCD RGB Backlight v2.0, v3.0, v4.0

RGB

Grove LCD

Tested Dev Kits

  • LoPy
  • WiPy
  • SiPy
  • Arduino Nano RP2040 Connect
  • Arduino Nano ESP32

Module

This module supports writing to, clearing and refreshing the LCD screen, among other functions.

write(text)

Prints text to LCD screen at the location of the cursor.

autoscroll(bool) [CURRENTLY NOT WORKING]

Enables lcd to scroll text as typed.

cursor(bool)

Sets cursor visibility (underscore cursor).

blink_cursor(bool)

Sets cursor blink visibility (rectangle cursor).

display(bool)

Sets display state (on/off).

home()

Returns the cursor to the (0,0) location on screen

move(col, row)

Moves the cursor to (col,row)

color(r, g, b)

Only supported by Displays with RGB Backlight. Changes the color of the LCD Backlight to (r,g,b)

Examples are provided in the examples folder.

Note: To use Grove RGB Display versions older than V5.0 you will need to initialize the Display object supplying the model

my_display = RGBDisplay(i2c_bus, 0x3e, RGBDisplay.GROVE_RGB_V4)

About

🖥 MicroPython Library for I2C 2x16 LCD Screens

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 100.0%