import time
import machine
Leds = [
machine.Pin(0, Pin.Out),
machine.Pin(1, Pin.Out),
machine.Pin(2, Pin.Out),
machine.Pin(3, Pin.Out),
machine.Pin(4, Pin.Out)
]
pot = pot_machine_ADC(26)
anterior = 0
Leds(Encendido).on()
#for x in range (0, 4)
#Leds(x)
Encendido = 0
while true:
actual = pot_read_u16()
if lectura != anterior
anterior = actual
Leds(Encendido).off()
if anterior == 0
Leds[0].on()
pass
#pot = machine.ADC(26)
#lectura = 0
#while true:
# if lectura