We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 21c7e6c commit 184d22aCopy full SHA for 184d22a
1 file changed
CircuitPython_Simple_Wordclock/code.py
@@ -132,7 +132,7 @@ def writetime(the_hr, the_min):
132
# print("The time is {}:{:02}".format(t.tm_hour, t.tm_min))
133
pixels.fill((0, 0, 0)) # blank all pixels for change
134
the_time = writetime(hour, minute)
135
- for i in range(0, 21): # Check all 30 bits
+ for i in range(0, 21): # Check all bits
136
if the_time & 1 << i: # If the bit is true
137
pixels[i+1] = COLOR # set pixel on (shift up 2 for buried one)
138
pixels.show()
0 commit comments