from machine import Pin
from time import sleep
sleep(0.1) # Wait for USB to become ready
print("Hello, Pi Pico!")
botao = Pin (5, Pin.OUT)
saida = Pin (7, Pin.IN)
botao.value(1)
while True:
print (saida.value())
sleep (0.5)
from machine import Pin
from time import sleep
sleep(0.1) # Wait for USB to become ready
print("Hello, Pi Pico!")
botao = Pin (5, Pin.OUT)
saida = Pin (7, Pin.IN)
botao.value(1)
while True:
print (saida.value())
sleep (0.5)