from machine import Pin
from neopixel import NeoPixel
import time
time.sleep(0.1) # Wait for USB to become ready
led_pin = Pin(5, Pin.OUT)
np = NeoPixel(led_pin, 16)
colors = [
(148, 0, 211),
(75, 0, 130),
(0, 0, 255),
(0, 255, 0),
(255, 255, 0),
(255, 127, 0),
(255, 0 , 0),
]
while True:
for color in colors:
np.fill(color)
np.write()
time.sleep(1)