#importar modulos basicos
from machine import Pin
from time import sleep
#delcarar variables
led = Pin(13, Pin.OUT)
slider = Pin(15, Pin.IN)
#button = Pin(15, Pin.PULL_UP)
#Ciclo infinito
while True:
print(slider.value())
led.value(not slider.value())
#sleep(1)