Class to display Time in words on WS2812B-LED-Stripe. * Drive LEDs with PixelArray * with 11x10 LED-Matrix and 4 minute-LEDS * GERMAN LAYOUT !!!!!!
Details and usage see https://os.mbed.com/users/charly/code/WordClock/wiki/Homepage
Revision 2:284c13980da8, committed 2017-11-07
- Comitter:
- charly
- Date:
- Tue Nov 07 18:27:32 2017 +0000
- Parent:
- 1:dd9657c12de6
- Commit message:
- "UHR" only on full hours
Changed in this revision
WordClock.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r dd9657c12de6 -r 284c13980da8 WordClock.cpp --- a/WordClock.cpp Mon Nov 06 20:45:54 2017 +0000 +++ b/WordClock.cpp Tue Nov 07 18:27:32 2017 +0000 @@ -533,7 +533,11 @@ break; } case 1:{ - ein(); + if (minute < 5) { + ein(); + }else{ + eins(); + } break; } case 2:{ @@ -581,7 +585,11 @@ break; } }//switch hour - uhr(); + + //only on full hours + if (minute < 5) { + uhr(); + } //minutes 0..4 and seconds in brigtness switch (minute%5){