#include <LiquidCrystal.h>
LiquidCrystal lcd(7,6,5,4,3,2);
int jam=11,menit=59,detik=55;
void setup() {
// put your setup code here, to run once:
lcd.begin (16,2);
pinMode (8,OUTPUT );
}
void loop() {
// put your main code here, to run repeatedly:
lcd.setCursor (4,0);
lcd. print ("jam ");
lcd.setCursor (6,1);lcd.print (jam );
lcd.setCursor (8,1);lcd.print(":");
lcd.setCursor (9,1); lcd.print(menit );
lcd.setCursor (11,1);lcd.print (":");
lcd.setCursor(12,1); lcd.print(detik);
delay (100);detik++;
if (detik==60 ){detik=0;menit++;tone (8,1000,50);}
if (menit ==60){menit=0;jam ++;}
if (jam==13){jam=1;}
lcd.setCursor (6,1);lcd.print (" ");
}