import machine
import time
LED_PIN=0
BUTTON_PIN=14
led=machine.Pin(LED_PIN,machine.Pin.OUT)
button=machine.Pin(BUTTON_PIN,machine.Pin.IN,machine.Pin.PULL_UP)
while True:
if not button.value():
led.on()
print("LED ON!")
time.sleep(1)
else:
led.off()
print("LED OFF!")
time.sleep(1)