from machine import Pin
from time import sleep
led= Pin(23, Pin.OUT)
Button= Pin(32, Pin.IN, Pin.PULL_DOWN)
while True:
    if Button.value() == 1:
        led.value(1)
    else:
        led.value(0)
        sleep(0.1)