#include <LiquidCrystal.h>
LiquidCrystal lcd(12, 11, 10, 9, 8, 7);
int x=0;
void setup() {
lcd.begin(20, 4);
lcd.clear();
}
void loop()
{
lcd.setCursor(0,0);
lcd.print("T-22:13:");
if(x<10)
lcd.print(0);
lcd.print(x);
lcd.setCursor(11,0);
lcd.print("Motor OFF");
delay(1000);
x++;
if(x>=60)
x=0;
lcd.setCursor(0,1);
lcd.print("M1-12:00");
lcd.setCursor(10,1);
lcd.print("M2-17:30");
lcd.setCursor(0,2);
if(x%2==0)
{
lcd.print("M1: S1 S2 S3 S4");
lcd.setCursor(0,3);
lcd.print(" 010 100 150 300");
}
else
{
lcd.print("M2: S1 S2 S3 S4");
lcd.setCursor(0,3);
lcd.print(" 200 010 015 040");
}
}