blind port, untested, placeholder

This commit is contained in:
Mikey Sklar 2017-10-06 17:28:39 -06:00
parent 15a6ebac7e
commit d244e615e5

View file

@ -0,0 +1,20 @@
from digitalio import DigitalInOut, Direction
import board
import neopixel
import time
pixpin = board.D1
numpix = 5
led = DigitalInOut(board.D13)
led.direction = Direction.OUTPUT
strip = neopixel.NeoPixel(pixpin, numpix, brightness=1, auto_write=True)
def colorWipe(color, wait):
for j in range(len(strip)):
strip[j] = (color)
time.sleep(wait)
while True:
colorWipe( (50, 0, 50), .1 ) # Purple