Update main.py
fixed for pylint, now passes locally, please re-PR
-import time, random
+import time
+import random
import board
-import digitalio
from board import SCL, SDA
+import digitalio
import busio
from adafruit_neotrellis.neotrellis import NeoTrellis
@@ -40,10 +41,10 @@ def blink(event):
if button.value:
trellis.pixels[event.number] = WHITE
else:
- for i in range(16):
- trellis.pixels[i] = ANIM_COLOR
+ for j in range(16):
+ trellis.pixels[j] = ANIM_COLOR
time.sleep(.05)
- trellis.pixels[i] = OFF
+ trellis.pixels[j] = OFF
time.sleep(.05)
# turn the LED off when a rising edge is detected
