from machine import Pin
import utime
LED1 = Pin(26, Pin.OUT)
button = Pin(0, Pin.IN)
while True:
if button.value()== 0:
LED1.value(1)
else:
LED1.value(0)
from machine import Pin
import utime
LED1 = Pin(26, Pin.OUT)
button = Pin(0, Pin.IN)
while True:
if button.value()== 0:
LED1.value(1)
else:
LED1.value(0)