This implements 25hr Clock in LCD1602_I2C mode with alarm setting capabilities
Dependencies: MBEDI2C_CLOCK_Timers
Revision 1:d00e1d87ce42, committed 2022-05-23
- Comitter:
- EDISON_NGUNJIRI
- Date:
- Mon May 23 12:11:00 2022 +0000
- Parent:
- 0:cca0f1245b6e
- Commit message:
- Version1.2
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- 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) {