"""
push_button-pulldown.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_DOWN)
while True:
if boton.value()==1:
print("Botón Presionado")
sleep_ms(250)