from machine import Pin
from time import sleep
led = Pin(32, Pin.OUT)
bouton = Pin(25, Pin.IN, Pin.PULL_UP)
while True :
if bouton.value() == 0 :
led.on()
else :
led.off()
from machine import Pin
from time import sleep
led = Pin(32, Pin.OUT)
bouton = Pin(25, Pin.IN, Pin.PULL_UP)
while True :
if bouton.value() == 0 :
led.on()
else :
led.off()