We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 23f39c4 commit 0e05ac6Copy full SHA for 0e05ac6
1 file changed
CircuitPython_Simple_Wordclock/code.py
@@ -54,7 +54,7 @@ def writetime(the_hr, the_min):
54
if (the_hr == 12) and (the_min == 0):
55
return NOON
56
# set minute
57
- if (the_min > 4) and (the_min < 8):
+ if (the_min > 3) and (the_min < 8):
58
value = value | FIVEMIN
59
if (the_min > 7) and (the_min < 13):
60
value = value | TENMIN
@@ -77,9 +77,9 @@ def writetime(the_hr, the_min):
77
if the_min >= 54:
78
79
# before or after
80
- if (the_min > 0) and (the_min <= 30):
+ if (the_min > 3) and (the_min <= 30):
81
value = value | PAST
82
- else:
+ if the_min >= 33:
83
the_hr = the_hr + 1 # for the TO case
84
value = value | TO
85
# set hour
0 commit comments