Skip to content

Commit 184d22a

Browse files
authored
Update code.py
1 parent 21c7e6c commit 184d22a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • CircuitPython_Simple_Wordclock

CircuitPython_Simple_Wordclock/code.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ def writetime(the_hr, the_min):
132132
# print("The time is {}:{:02}".format(t.tm_hour, t.tm_min))
133133
pixels.fill((0, 0, 0)) # blank all pixels for change
134134
the_time = writetime(hour, minute)
135-
for i in range(0, 21): # Check all 30 bits
135+
for i in range(0, 21): # Check all bits
136136
if the_time & 1 << i: # If the bit is true
137137
pixels[i+1] = COLOR # set pixel on (shift up 2 for buried one)
138138
pixels.show()

0 commit comments

Comments
 (0)