#LED Blink using Switch
from machine import Pin
from time import sleep
led = Pin(2, Pin.OUT)
push_button = Pin(14, Pin.IN)
while True:
logic = push_button.value()
if logic == True:
led.on()
else:
led.off()