from machine import Pin, ADC
from neopixel import NeoPixel
from time import sleep_ms
pAnalogico = Pin(33)
sensor = ADC(pAnalogico)
pNeoPixel = Pin(23, Pin.OUT)
np = NeoPixel(pNeoPixel, 16)
while True:
for posicao in range(len(np)):
np[posicao] = (0, 0, 255)
np.write()
sleep_ms(100)
for posicao in range(len(np)-1,-1,-1):
np[posicao] = (0, 0, 0)
np.write()
sleep_ms(100)