Update code.py

This commit is contained in:
Mike Barela 2019-07-10 13:50:35 -04:00 committed by GitHub
parent 9c16edbacf
commit de0d1c2c55
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -45,6 +45,8 @@ HALF = 1<<18
TWENTY = 1<<19
# Pass in hour and minute, return LED bitmask
# pylint: disable=too-many-branches
# pylint: disable=too-many-statements
def writetime(the_hr, the_min):
value = 0 # Start with zero, which is no words
if (the_hr == 24) and (the_min == 0): # Special cases: Midnight and Noon
@ -111,6 +113,8 @@ def writetime(the_hr, the_min):
value = value | NOON
return value
# end def
# pylint: enable=too-many-branches
# pylint: enable=too-many-statements
# Main loop
LEDstate = 0