from machine import Pin
from time import Sleep
Print("LED with Button")
led=Pin(3,Pin.OUT)
Push_button=Pin(16,Pin.IN)
while True:
logic_state=Push_button_value()
if logic_state==True
led.Value(1)
else:
led.Value(0)
from machine import Pin
from time import Sleep
Print("LED with Button")
led=Pin(3,Pin.OUT)
Push_button=Pin(16,Pin.IN)
while True:
logic_state=Push_button_value()
if logic_state==True
led.Value(1)
else:
led.Value(0)