We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b34e0aa commit 6902555Copy full SHA for 6902555
zhhclock/zhhclock.py
@@ -1,4 +1,4 @@
1
-### zhhlocky.py v1.0
+### zhhlocky.py v1.1
2
### A clock and stopwatch with many backgrounds for Kitronik ZIP Halo HD
3
4
### copy this file to BBC micro:bit V2 as main.py
@@ -282,7 +282,7 @@ def show_display_image():
282
if utime.ticks_diff(t2_ms, t1_ms) > VERY_LONG_PRESS_DURATION_MS:
283
new_char = "t" ### [t]ime set
284
elif utime.ticks_diff(t2_ms, t1_ms) > LONG_PRESS_DURATION_MS:
285
- new_char = mode[(mode_idx + 1 ) % len(mode)][0]
+ new_char = mode[(mode_idx + 1 ) % ROTATE_MODES][0]
286
elif utime.ticks_diff(t2_ms, t1_ms) > SHORT_PRESS_DURATION_MS:
287
new_char = "b" ### next [b]ackground
288
0 commit comments