Skip to main content

Library for interacting with an I2C LCD screen through Python

Project description

LCD I2C

Use an I2C LCD with Python

Basic library for interacting with I2C LCD screens. It started off as a Python port of the Arduino LiquidCristal_I2C library and ended up implementing an object oriented API, for easier use.

Tested using a Raspberry Pi Zero 2W.

Examples

Connect to LCD screen and print some text:

from lcd_i2c import LCD_I2C

lcd = LCD_I2C(39, 16, 2)

# Turn on the backlight
lcd.backlight.on()

# Show the blinking cursor
lcd.blink.on()
# or:
# lcd.cursor.blink.on()

# Print some text
lcd.write_text('Hola!')

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

lcd-i2c-0.2.3.tar.gz (7.2 kB view hashes)

Uploaded Source

Built Distribution

lcd_i2c-0.2.3-py3-none-any.whl (9.0 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page