from machine import Pin
from neopixel import NeoPixel
from time import sleep,sleep_ms,ticks_ms
pin = Pin(26, Pin.OUT) # set GPIO0 to output to drive NeoPixels
np1 = NeoPixel(pin, 8) # create NeoPixel driver on GPIO0 for 8 pixels
pin = Pin(27, Pin.OUT) # set GPIO0 to output to drive NeoPixels
np2 = NeoPixel(pin, 8)
np1[0] = (255, 0, 0) # set the first pixel to white
np1.write() # write data to all pixels
np2[0] = (0, 0, 255) # set the first pixel to white
np2.write()