from machine import Pin
from time import sleep
import neopixel
#initiate the neopixel pin
neopixel_pin = Pin(1)
#initiate neopixel with 1 led
np = neopixel.NeoPixel(neopixel_pin,2)
#blink the neopixel led
while True:
np[0] = [255,0,0]
np[1] = [0,255,0]
np.write()#apply the color
sleep(1)# wait for 1 second
np[0] = [0,0,0]
np[1] = [0,0,0]
np.write()#apply the color
sleep(1)# wait for 1 second