"""
01-Proyecto_push_button-pullup_y_LED.py
Script para Raspberry Pi Pico y placas compatibles con upython
Demostracion muy basica del código minimo para el uso de botones.
15 de mayo de 2025
***Por El Inge Rulos***
"""
from machine import Pin
from utime import sleep_ms
boton = Pin(17, Pin.IN, Pin.PULL_UP)
led = Pin(28, Pin.OUT)
while True:
if boton.value()==0:
led.toggle()
sleep_ms(250)