from machine import Pin
from time import sleep
button1 = Pin(35, Pin.IN, Pin.PULL_UP)
led1 = Pin(33, Pin.OUT)
while True:
input1 = button1.value()
if input1 == 0:
led1.on()
else:
led1.off()
sleep(0.01)
from machine import Pin
from time import sleep
button1 = Pin(35, Pin.IN, Pin.PULL_UP)
led1 = Pin(33, Pin.OUT)
while True:
input1 = button1.value()
if input1 == 0:
led1.on()
else:
led1.off()
sleep(0.01)