# EX 1 AULAS BOTOES
# EX 2 AULAS BOTOES
# CONECTAR UM BOTAO PULL_UP
# BOTAO PULL_UP C RESISTOR INTERNO
from machine import Pin
from time import sleep
bot = Pin(16,Pin.IN)
# while True:
# if bot_pull_up.value() == 0:
# print(f"\nO VALOR DO BOTAO:\n{bot_pull_up.value()}")
# sleep(1)
# while True:
# if bot.value() == 0:
# print(f"\n--------------------------------------------------")
# print(f"\nBOTAO COM RESIST EXTERNO FUNCIONANDO!!!\nVALOR BOTAO:\t{bot.value()}")
while True:
if bot.value() == 0:
print(f"BOTAO FUNCIONANDO!!!")