Format Space Face LED
MODIFY
Space_Face_LED_Galaxy_Makeup/Space_Face_LED_Galaxy_Makeup.py
Space_Face_LED_Galaxy_Makeup/Space_Face_LED_Galaxy_Makeup.py
-from digitalio import DigitalInOut, Direction
+import time
+
import board
import neopixel
-import time
+from digitalio import DigitalInOut, Direction
-pixpin = board.D1
-numpix = 5
+pix_pin = board.D1
+num_pix = 5
led = DigitalInOut(board.D13)
led.direction = Direction.OUTPUT
-strip = neopixel.NeoPixel(pixpin, numpix, brightness=1, auto_write=True)
+strip = neopixel.NeoPixel(pix_pin, num_pix, brightness=1, auto_write=True)
+
-def colorWipe(color, wait):
+def color_wipe(color, wait):
for j in range(len(strip)):
strip[j] = (color)
time.sleep(wait)
+
while True:
- colorWipe( (50, 0, 50), .1 ) # Purple LEDs
+ color_wipe((50, 0, 50), .1) # Purple LEDs

Format Space Face LED