Skip to content

Commit 0e05ac6

Browse files
authored
Update code.py
1 parent 23f39c4 commit 0e05ac6

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

  • CircuitPython_Simple_Wordclock

CircuitPython_Simple_Wordclock/code.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ def writetime(the_hr, the_min):
5454
if (the_hr == 12) and (the_min == 0):
5555
return NOON
5656
# set minute
57-
if (the_min > 4) and (the_min < 8):
57+
if (the_min > 3) and (the_min < 8):
5858
value = value | FIVEMIN
5959
if (the_min > 7) and (the_min < 13):
6060
value = value | TENMIN
@@ -77,9 +77,9 @@ def writetime(the_hr, the_min):
7777
if the_min >= 54:
7878
value = value | FIVEMIN
7979
# before or after
80-
if (the_min > 0) and (the_min <= 30):
80+
if (the_min > 3) and (the_min <= 30):
8181
value = value | PAST
82-
else:
82+
if the_min >= 33:
8383
the_hr = the_hr + 1 # for the TO case
8484
value = value | TO
8585
# set hour

0 commit comments

Comments
 (0)