This implements 25hr Clock in LCD1602_I2C mode with alarm setting capabilities
Dependencies: MBEDI2C_CLOCK_Timers
Diff: main.cpp
- Revision:
- 1:d00e1d87ce42
- Parent:
- 0:cca0f1245b6e
--- a/main.cpp Sun May 22 09:16:53 2022 +0000 +++ b/main.cpp Mon May 23 12:11:00 2022 +0000 @@ -168,7 +168,7 @@ case 0: lcd.clear(); lcd.setCursor(0,0); - sprintf(Hold,"TIME : %d%d:%d%d:%d%d",clock1.hour/10,clock1.hour%10,clock1.Minutes/10,clock1.Minutes%10,clock1.Second/10,clock1.Second%10); + sprintf(Hold,"TIME : %d%d:%d%d",clock1.hour/10,clock1.hour%10,clock1.Minutes/10,clock1.Minutes%10); lcd.print(Hold); if(IsAlarmOn()==1) {