# Este programa esta diaeñado por maria paulina y se activa la resistencia interna
from machine import Pin
import utime
# creado los objetos
interruptor = Pin(32, Pin.IN, Pin.PULL_UP)
ledinterno = Pin(2, Pin.OUT)
while True:
medicion = interruptor.value()
print(medicion)
utime.sleep_ms(1000)
if medicion == 0:
ledinterno.value(1)
print("Se encendio el led ")
else:
ledinterno.value(0)
print ("Se apago el led ")