Advertisement
martinius96

Untitled

Jun 28th, 2021
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. void updateLCD() {
  2. lcd.setCursor(4, 0);
  3. if (hour < 10) {
  4. lcd.print(F("0"));
  5. }
  6. lcd.print(hour, DEC);
  7. lcd.setCursor(7, 0);
  8. if (minute < 10) {
  9. lcd.print(F("0"));
  10. }
  11. lcd.print(minute, DEC);
  12. lcd.setCursor(10, 0);
  13. if (second < 10) {
  14. lcd.print(F("0"));
  15. }
  16. lcd.print(second, DEC);
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement