#include <Wire.h>
#include"RTClib.h"
#include <LiquidCrystal.h>
LiquidCrystal lcd (12,11,5,4,3,2);
RTC_DS3231 rtc;
char namaHari [7][12]={"Ahad", "Senin", "Selasa", "Rabu", "Kamis", "Jumat", "Sabtu"};
void setup() {
// put your setup code here, to run once:
pinMode(8,OUTPUT );
lcd.begin(20,4);
rtc.begin();
if (rtc.lostPower()){
rtc.adjust(DateTime(F(__DATE__), F(__TIME__)));
}
lcd.setCursor(0,0);lcd.print("JAM DIGITAL");
delay(1000);
lcd.setCursor(0,1);lcd.print("LAB LISTRIM)");
delay(1000);
lcd.clear();
}
void loop() {
// put your main code here, to run repeatedly:
}