driver version for LCD1602 display on I2C bus
The original code : https://github.com/the-raspberry-pi-guy/lcd
- 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
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(alarms=2)
by default it switches Backlight 2 times
import LCD1602_I2C_driver.py as driver
lcd1602 = driver.lcd()
lcd1602.backlight_alarm()
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...")