import time
from machine import Pin
time.sleep(0.1) # Wait for USB to become ready
BTN1_PIN = 28
BTN2_PIN = 21
BTN3_PIN = 16
BLUE_PIN = 1
GREEN_PIN = 2
RED_PIN = 0
DEBOUNCE_MS = 50
button_1 = Pin(BTN1_PIN, Pin.IN, Pin.PULL_UP)
button_2 = Pin(BTN2_PIN, Pin.IN, Pin.PULL_UP)
button_3 = Pin(BTN3_PIN, Pin.IN, Pin.PULL_UP)
blue = Pin(BLUE_PIN, Pin.OUT)
green = Pin(GREEN_PIN, Pin.OUT)
red = Pin(RED_PIN, Pin.OUT)
buttons = [button_1, button_2, button_3]
#===== code below ============
# button_1 varaible is the red button
# button_2 varaible is the green button
# button_3 varaible is the blue button
# blue, green and red variables represent the leds
# make each led light up when the corresponding button is pressed.
# Led turns off if the button is not pressed.
while True: