Update main.py

fixed for pylint, now passes locally, please re-PR @djecken
This commit is contained in:
John Edgar Park 2018-10-09 13:29:48 -07:00 committed by GitHub
parent 8dd4b97d01
commit 515dd258e1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,7 +1,8 @@
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