from machine import Pin
from time import sleep
botao_red = Pin(6, Pin.IN, Pin.PULL_UP)
botao_blue = Pin(28, Pin.IN, Pin.PULL_DOWN)
led_red = Pin(8, Pin.OUT)
led_blue = Pin(21, Pin.OUT)
while True:
if botao_red.value() == 0:
led_red.on()
else:
led_red.off()
if botao_blue.value() == 1:
led_blue.on()
else:
led_blue.off()