# Importar las librerÃas necesarias
import board
import digitalio
# Initialize pins
# Initialize as output
led = digitalio.DigitalInOut(board.GP25)
led.direction = digitalio.Direction.OUTPUT
# Initialize as input
button = digitalio.DigitalInOut(board.GP14)
button.direction = digitalio.Direction.INPUT
button.pull = digitalio.Pull.DOWN
# Write a pin
led.value = True # Establecer el valor en ALTO
led.value = False # Establecer el valor en BAJO
# Read a pin
button_value = button.value