import time
time.sleep(0.1) # Wait for USB to become ready
print("Hello, Pi Pico!")
from machine import Pin
from neopixel import NeoPixel
pin = Pin(27, Pin.OUT) # set GPIO27 to output to drive NeoPixels
led = NeoPixel(pin, 3) # create NeoPixel driver on GPIO0 for 3 pixels
ring_led=NeoPixel(Pin(15,Pin.OUT),16)
led[0] = (255, 0, 255) # set the first pixel to white
led[2] = (0, 0, 255) # set the first pixel to white
led.write() # write data to all pixels
while 1:
for k in range(16):
for i in range(16):
ring_led[i]=(0,0,0)
ring_led[k]=(255,255,0)
ring_led.write()
time.sleep(0.5)