from machine import Pin
from time import sleep
print("hello")
led=Pin(15, Pin.OUT)
push_b=Pin(16, Pin.IN)
while True:
logic_state=push_b.value()
if logic_state == True:
led.value(1)
else:
led.value(0)from machine import Pin
from time import sleep
print("hello")
led=Pin(15, Pin.OUT)
push_b=Pin(16, Pin.IN)
while True:
logic_state=push_b.value()
if logic_state == True:
led.value(1)
else:
led.value(0)