What is LcdProgressBar?
Read moreLcdProgressBar is an Arduino library for displaying a progress bar in LCD display.
DependenciesThe LCD display must be previously initialized. This library uses LiquidCrystal library for displaying.
Expected resultExampleRefer to full example: examples/Timer/Timer.ino.
Includes
#include <LiquidCrystal.h>
#include <LcdProgressBar.h> //## Include this lib
Initialization: instantiations
LiquidCrystal lcd(12, 11, 5, 4, 3, 2);
LcdProgressBar lpg(&lcd, 1, 16);
Initializing the progress bar
void initLpg()
{
//-- start time
startedMillis = millis();
//-- Set min and max values
lpg.setMinValue(startedMillis);
lpg.setMaxValue(startedMillis + duration);
}
Drawing the progress bar
//-- draw progress bar
lpg.draw(currentMillis);
or via the alias drawValue (the LcdBarGraph way :wink:):
//-- draw progress bar
lpg.drawValue(currentMillis);
3 projects • 9 followers
Computer science lover for a while, I'm a project/program manager. My father transmitted me his DIY love: creating useful and helpful stuffs is so rewarding.
Comments
Please log in or sign up to comment.