#include "RTClib.h"
#include <LiquidCrystal.h>
RTC_DS1307 rtc;
LiquidCrystal lcd(12, 11, 10, 9, 8, 7);
void setup () {
lcd.begin(16, 2);
if (! rtc.begin()) {
lcd. print("Erro");
abort();
}
}
void loop () {
DateTime now = rtc.now();
lcd.print(" Hora: ");
lcd.print(now.hour(), DEC);
lcd.print(':');
lcd.print(now.minute(), DEC);
lcd.print(':');
lcd.print(now.second(), DEC);
delay(1000);
lcd. clear ();
}