Advertisement
Guest User

Untitled

a guest
Jun 20th, 2019
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.21 KB | None | 0 0
  1. if (now.seconds() < 10) {
  2. lcd.print("0");
  3. }
  4. lcd.print(now.seconds());
  5.  
  6. char timestr[9];
  7. snprintf(timestr, 9, "%02d:%02d:%02d", now.hours(), now.seconds(), now.minutes());
  8. lcd.print(timestr);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement