from machine import Pin
import utime
import time
buttom = Pin(12,Pin.IN,Pin.PULL_DOWN)
led = Pin(1,Pin.OUT)
while True :
if buttom.value():
led.value(1)
time.sleep(0.05)
else :
led.value(0)
time.sleep(0.05)