blind port, untested, placeholder
This commit is contained in:
parent
15a6ebac7e
commit
d244e615e5
1 changed files with 20 additions and 0 deletions
20
Space_Face_LED_Galaxy_Makeup/Space_Face_LED_Galaxy_Makeup.py
Normal file
20
Space_Face_LED_Galaxy_Makeup/Space_Face_LED_Galaxy_Makeup.py
Normal 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
|
||||
Loading…
Reference in a new issue