Skip to content

rppelayo/LiquidCrystalPi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 

Repository files navigation

A port of the LiquidCrystal (HD44780) Arduino library for the Raspberry Pi using Python

Currently supports 4-bit mode only (8/26/17)

Usage:

Wire LCD pins RS, E, D4 to D7 to any GPIO pins. Example: RPi LCD

Import LiquidCrystalPi and initiate class LCD:

import LiquidCrystalPi

LCD = LiquidCrystalPi.LCD(<rs>,<enable>,<d4>,<d5>,<d6>,<d7>)
LCD.begin(<columns>, <lines>)

Write string:

LCD.write("<string>")

Also needs RPi.GPIO as import

See HelloWorldPi.py for complete code

Available Commands (as of 8/26/2017):

command(value)                 #send a command

write(string or character)     #write a string or character

clear()                        #clear LCD screen

home()                         #set cursor to row 1, col 1

nextline()                     #set cursor to row 2

moveright()                    #move cursor one position to the right

moveleft()                     #move cursor one position to the left

The contents of this library and README will be continuously updated.

LiquidCrystalPi

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages