import machine,neopixel,time
from machine import Pin
from neopixel import NeoPixel
from time import sleep

np = NeoPixel(Pin(13) , 16)

"""
np[0] = (255,0,0)
np[1] = (0,255,0)
np[2] = (0,0,255)
np[14] = (100,100,100)
np.write()
"""

rojo = (255,0,0)
verde = (0,255,0)
azul = (0,0,255)
"""
while True:
    for color in [rojo,verde,azul]:
        np.fill(color)
        np.write()
        sleep(1)
"""
NroLeds = 16
np.fill((255,255,255))
while True:
    for nPixel in range(NroLeds):
        np[nPixel] = verde
        np.write()
        sleep(0.5)
        np[nPixel] = (255,255,255)
        np.write()