Arduino Code:
#include <LiquidCrystal.h>
LiquidCrystal lcd(12, 11, 5, 4, 3, 2);
void setup()
{
lcd.begin(16, 2);
}
void loop()
{
int i;
lcd.clear(); // Display is getting cleared
delay(1000);
lcd.setCursor(0, 0); // First row of the LCD Display
lcd.print("Count-Down Timer");
delay(500);
for(i=0;i<=60;i++)
{
lcd.setCursor(0, 1); // Second row of the LCD Display
lcd.print("Seconds = ");
lcd.setCursor(10, 1);
lcd.print(i);
delay(1000);
}
lcd.clear(); // Display is getting cleared
delay(500);
//Recovery Timer
lcd.setCursor(0, 0);
lcd.print("Recovery Timer");
lcd.setCursor(0, 1);
lcd.print("Seconds = ");
for(i=0;i<=10;i++)
{
lcd.setCursor(10, 1);
lcd.print(i);
delay(1000);
}
lcd.clear(); // Display is getting cleared
delay(500);
}