from machine import Pin
from time import sleep
led_red=Pin(0,Pin.OUT)
button=Pin(14,Pin.IN)
while True:
press=button.value()
if press==True:
led_red.on()
print("LED ON!")
sleep(1)
else:
led_red.off()
print("LED OFF!")
sleep(1)