#include <LiquidCrystal_I2C.h>
#include "RTClib.h"
RTC_DS1307 rtc;
char daysOfTheWeek[7][12] = {"sun", "mon", "tue", "wed", "thr", "fri", "sat"};
#define I2C_ADDR 0X26
#define LCD_COLUMNS 16
#define LCD_LINES 2
LiquidCrystal_I2C lcd(I2C_ADDR, LCD_COLUMNS, LCD_LINES);
void setup () {
// put your setup code here, to run once
lcd.init();
lcd.backlight();
if (! rtc.begin()){
Serial.println("Tidak Menemukan RTC");
Serial.flush();
abort();
}
}
void loop() {
// put your main code here, to run repeatedly:
DateTime now = rtc.now();
String tanggal = String(daysOfTheWeek[now.dayOfTheWeek()]) +"/"+ String(now.month()) +"/"+ String(now.year());
String Jam = String(now.hour()) +":"+
}