from machine import Pin
from time import sleep
print("Inicio")
led = Pin(0,Pin.OUT)
bt = Pin(2,Pin.IN)
while True:
val = bt.value()
print(val, end='')
led.value(val)
sleep(0.2)
from machine import Pin
from time import sleep
print("Inicio")
led = Pin(0,Pin.OUT)
bt = Pin(2,Pin.IN)
while True:
val = bt.value()
print(val, end='')
led.value(val)
sleep(0.2)