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(26, Pin.OUT) # set GPIO0 to output to drive NeoPixels
np = NeoPixel(pin, 2) # create NeoPixel driver on GPIO0 for 8 pixels
pin1= Pin(22, Pin.OUT) # set GPIO0 to output to drive NeoPixels
np1 = NeoPixel(pin1, 16) # create NeoPixel driver on GPIO0 for 8 pixels
np[0] = (255, 0, 0) # set the first pixel to white
np[1] = (255, 0, 0)
for i in range(16):
np1[i] = (255, 255, 0)
np.write() # write data to all pixels
np1.write()
r, g, b = np[0] # get first pixel colour
print(r,g,b)