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.

Installation

Get the package from pypi:

pip install rpi-lcd

Usage

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')

sleep(5)
lcd.clear()

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)
https://github-bogdal.s3.amazonaws.com/rpi-lcd/lcd_text.jpeg

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 details)

Uploaded Source

File details

Details for the file rpi-lcd-0.0.2.tar.gz.

File metadata

  • Download URL: rpi-lcd-0.0.2.tar.gz
  • Upload date:
  • Size: 2.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for rpi-lcd-0.0.2.tar.gz
Algorithm Hash digest
SHA256 ceb0103b78046420b044300b0fb6d681e7277cdd19dd2601d84bcabbd5de9108
MD5 01711ee150297c0424cba949c5ca3a00
BLAKE2b-256 291b966992c6c97e8d6cd590bca120bd3be5c650ba52f46990ce78667c238eff

See more details on using hashes here.

Supported by

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