Skip to main content

I²C LCD library for RaspberryPi

Project description

This library supports LCD text displays (20x4, 16x2 and other) via I²C converter.

It requires the python-smbus package installed on your Raspberry Pi and enabled ARM I2C interface.


Get the package from pypi:

pip install rpi-lcd


from rpi_lcd import LCD
from time import sleep

lcd = LCD()

lcd.text('Hello World!', 1)
lcd.text('Raspberry Pi', 2)
lcd.text('is really', 3, 'center')
lcd.text('awesome', 4, 'right')


rpi-lcd handles multiline texts:

from rpi_lcd import LCD

lcd = LCD()
lcd.text('This is a message that has more than 20 chars and does not fit in one line', 1)

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

rpi-lcd-0.0.2.tar.gz (2.2 kB view hashes)

Uploaded source

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page