FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

bogdal/rpi-lcd: I²C LCD library for RaspberryPi · GitHub

/ rpi-lcd Public

Latest commit

 

History

9 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

rpi-lcd

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)

About

I²C LCD library for RaspberryPi

Resources

Stars

28 stars

Watchers

3 watching

Forks

Releases

Packages

Used by

Contributors

Languages


Back | FazBrowse Home | New Git URL