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
BTN4_PIN = 15
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)
button_4 = Pin(BTN4_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
# when a button (red, green, blue) is pressed add the corresponding colour to a list
# when yellow button is pressed, stop accepting button presses
# when input is done light up the leds in the same sequence as entered
while True:
time.sleep(0.3)