import time
from machine import Pin
from time import sleep
LED1 = Pin(14,Pin.OUT)
bt_sw1 = Pin(5,Pin.IN)
bt_status = False
while True:
bt_status = not(bt_sw1.value())
LED1.value(bt_status)
sleep(0.1)
import time
from machine import Pin
from time import sleep
LED1 = Pin(14,Pin.OUT)
bt_sw1 = Pin(5,Pin.IN)
bt_status = False
while True:
bt_status = not(bt_sw1.value())
LED1.value(bt_status)
sleep(0.1)