from import as machine
from import as sleep
print("Button with LED")
LED_Pin(3,pin.OUT)
Push_Button=Pin(6,Pin.IN)
While True:
logic_state=push_Button value()
iflogic_state==true(1)
led_value(1)
else
led_value(0)
from import as machine
from import as sleep
print("Button with LED")
LED_Pin(3,pin.OUT)
Push_Button=Pin(6,Pin.IN)
While True:
logic_state=push_Button value()
iflogic_state==true(1)
led_value(1)
else
led_value(0)