from machine import Pin
from utime import sleep
Pin(25 , Pin.OUT).value(1)
ledpin = Pin(1 , Pin.OUT)
button = Pin(0 ,Pin.IN , Pin.PULL_UP)
while True :
ledpin.value(button.value())from machine import Pin
from utime import sleep
Pin(25 , Pin.OUT).value(1)
ledpin = Pin(1 , Pin.OUT)
button = Pin(0 ,Pin.IN , Pin.PULL_UP)
while True :
ledpin.value(button.value())