Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void loop() {
- DateTime now = RTC.now();
- lcd.clear();
- lcd.print(now.hour(), DEC);
- lcd.print(':');
- lcd.print(now.minute(), DEC);
- lcd.print(':');
- int seconds = now.second();
- if (seconds < 10)
- lcd.print("0");
- lcd.print(seconds, DEC);
- delay(3000);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement