# uPython_02_pull-up
from machine import Pin
from time import sleep
btn = Pin(34,Pin.IN)
while True:
estatBoto = btn.value()
if estatBoto == True:
print("Botó no premut")
else:
print("Botó premut")
sleep(.3)
# uPython_02_pull-up
from machine import Pin
from time import sleep
btn = Pin(34,Pin.IN)
while True:
estatBoto = btn.value()
if estatBoto == True:
print("Botó no premut")
else:
print("Botó premut")
sleep(.3)