from machine import pin
import time
led=pin(27,pin.OUT)
button=pin(0,pin.IN)
while True:
press = button()
if press == True():
led(1)
else:
led(0)
from machine import pin
import time
led=pin(27,pin.OUT)
button=pin(0,pin.IN)
while True:
press = button()
if press == True():
led(1)
else:
led(0)