import time
from LightStrip import *
# Example showing how functions, that accept tuples of rgb values,
# simplify working with gradients
time.sleep(0.1) # Wait for USB to become ready
print("Hello, Pi Pico!")
numpix = 16
# strip = Neopixel(numpix, 1, 17, "GRB")
# strip = Neopixel(numpix, 0, 0, "GRBW")
np = LightStrip(17, numpix, 1)
red = (255, 0, 0)
orange = (255, 50, 0)
yellow = (255, 100, 0)
green = (0, 255, 0)
blue = (0, 0, 255)
indigo = (100, 0, 90)
violet = (200, 0, 100)
colors_rgb = [red, orange, yellow, green, blue, indigo, violet]
# same colors as normaln rgb, just 0 added at the end
# colors_rgbw = [color+tuple([0]) for color in colors_rgb]
# colors_rgbw.append((0, 0, 0, 255))
# uncomment colors_rgbw if you have RGBW strip
colors = colors_rgb
# colors = colors_rgbw
step = round(numpix / len(colors))
current_pixel = 0
# strip.brightness(50)
n = 0
while True:
np.setPixel(n, blue)
time.sleep(0.1)
np.off()
n = (n + 1) % numpix