from machine import Pin
from time import *
led=Pin(23,Pin.OUT)
bouton=Pin(22,Pin.IN)
while True :
if bouton.value() == 1 :
led.on()
else:
led.off()3from machine import Pin
from time import *
led=Pin(23,Pin.OUT)
bouton=Pin(22,Pin.IN)
while True :
if bouton.value() == 1 :
led.on()
else:
led.off()3