from machine import Pin
import time
L1=Pin(19,Pin.OUT,value=0)
B1=Pin(5,Pin.IN,Pin.PULL_UP)
def PORT(dat):
lista_string=list(f"{dat:08b}")
lista_entero=list(map(int,lista_string))
while True:
estado_boton=B1.value()
if estado_boton==0:
L1.value(1)
else:
L1.value(0)
time.sleep(1)