from machine import Pin
from utime import sleep
from neopixel import NeoPixel

sleep(0.1)
led = NeoPixel(Pin(0), 3)   # create NeoPixel driver on GPIO0 for 8 pixels

while 1:
    for i in range(3):
        led[i] = (255, 255, 255) # set the first pixel to white
    led.write()              # write data to all pixels
    print(led[0])
    sleep(0.5)
    for i in range(3):
        led[i] = (0, 0, 0) # set the first pixel to black
    led.write()              # write data to all pixels
    print(led[0])
    sleep(0.5)
BOOTSELLED1239USBRaspberryPiPico©2020RP2-8020/21P64M15.00TTT