Advertisement
baldengineer

Untitled

Sep 29th, 2012
186
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.29 KB | None | 0 0
  1. void loop() {
  2.     DateTime now = RTC.now();
  3.     lcd.clear();
  4.     lcd.print(now.hour(), DEC);
  5.     lcd.print(':');
  6.     lcd.print(now.minute(), DEC);
  7.     lcd.print(':');
  8.     int seconds = now.second();
  9.     if (seconds < 10)
  10.       lcd.print("0");
  11.     lcd.print(seconds, DEC);
  12.     delay(3000);
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement