from ws2812 import WS2812
import utime
import machine
power = machine.Pin(11,machine.Pin.OUT)
power.value(1)

# Define colors 
BLACK = (0, 0, 0)
RED = (150, 0, 0)
YELLOW = (20, 150, 0)
GREEN = (0, 205, 0)
CYAN = (0, 100, 255)
BLUE = (0, 0, 255)
PURPLE = (100, 0, 255)
WHITE = (255, 255, 255)
COLORS = (BLACK, RED, YELLOW, GREEN, CYAN, BLUE, PURPLE, WHITE)

#WS2812(pin_num,led_count)
led = WS2812(12,1) 

while True:
    print("LED colorful")
    for color in COLORS: 
        led.pixels_fill(color)
        led.pixels_show()
        utime.sleep(1)