Skip to content

framboise-pi/LCD1602_I2C_driver---raspberry-pi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 

Repository files navigation

LCD1602_I2C_driver.py---raspberry-pi

driver version for LCD1602 display on I2C bus

The original code I used: https://github.com/the-raspberry-pi-guy/lcd

What's new in my version?

  • display a progress bar - with options
  • scroll text from right to left - with options
  • scroll text from left to right - with options
  • backlight alarm (multiple on/off sequence) - with option

Examples

Scroll Right <-> Left

scroll_rl(text,line=1) line is an option, 1 is default value as you can see

import LCD1602_I2C_driver.py as driver
lcd1602 = driver.lcd()
lcd1602.scroll_rl("long text to display",2)

This will display the text string on line 2.

BACKLIGHT ALARM

backlight_alarm(alarms=2) by default it switches Backlight 2 times

import LCD1602_I2C_driver.py as driver
lcd1602 = driver.lcd()
lcd1602.backlight_alarm()

PROGRESS BAR


ShowProgBar(progbar_text="LOADING:", progbar_mini = 0, progbar_maxi = 100)


import LCD1602_I2C_driver.py as driver
lcd1602 = driver.lcd()
# Create object progressbar
progbar = driver.ProgressBar(lcd1602)
progbar.ShowProgBar("STARTING...")

About

best driver version for LCD1602 display on I2C bus :)

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages