#include <LiquidCrystal.h>
int maximum = 148;
int i;
LiquidCrystal lcd(12, 11, 10, 9, 8, 7);
void setup() {
// put your setup code here, to run once:
Serial.begin(9600);
lcd.begin(16, 2);
}
void loop() {
// put your main code here, to run repeatedly:
if (i == 0)
{
for (i=0; i < maximum; i++)
{
lcd.print("=");
lcd.print(i);
lcd.print("/");
lcd.print(maximum);
delay(50);
lcd.clear(); // Clears the display
}
}
else
{
lcd.print("=");
lcd.print(i);
lcd.print("/");
lcd.println(maximum);
delay(2000);
lcd.clear(); // Clears the display
}
}