"""
push_button-pullup.py
Script para Raspberry Pi Pico y placas compatibles con upython
Demostracion muy basica del código minimo para el uso de botones.
13 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)
while True:
if boton.value()==0:
print("Botón Presionado")
sleep_ms(250)