from machine import Pin
from utime import sleep
btn = Pin(15,Pin.IN, Pin.PULL_DOWN)
led = Pin(25,Pin.OUT)
while True:
if btn.value()==1:
led.value(not led.value())
sleep(0.1)
sleep(0.1)
from machine import Pin
from utime import sleep
btn = Pin(15,Pin.IN, Pin.PULL_DOWN)
led = Pin(25,Pin.OUT)
while True:
if btn.value()==1:
led.value(not led.value())
sleep(0.1)
sleep(0.1)