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