Skip to content

Commit 49d438f

Browse files
committed
Moved clearing LEDs.
1 parent 8e98d44 commit 49d438f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/trellism4_neopixel_toggle.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,15 @@ def wheel(pos):
1515
return int(pos * 3), 0, int(255 - (pos * 3))
1616

1717

18-
trellis.pixels.fill((0, 0, 0))
19-
2018
led_on = []
2119

2220
for x in range(trellis.pixels.width):
2321
led_on.append([])
2422
for y in range(trellis.pixels.height):
2523
led_on[x].append(False)
2624

25+
trellis.pixels.fill((0, 0, 0))
26+
2727
current_press = set()
2828

2929
while True:

0 commit comments

Comments
 (0)