from machine import Pin
x=Pin(34,Pin.IN)
y=Pin(5,Pin.OUT)
while True:
if x.value()==0:
y.on()
else:
y.off()
from machine import Pin
x=Pin(34,Pin.IN)
y=Pin(5,Pin.OUT)
while True:
if x.value()==0:
y.on()
else:
y.off()