from machine import Pin
ButtonRed= Pin(3, Pin.IN, Pin.PULL_DOWN)
ButtonGreen= Pin(8, Pin.IN, Pin.PULL_DOWN)
ButtonBlue= Pin(14, Pin.IN, Pin.PULL_DOWN)
ButtonReset= Pin(22, Pin.IN, Pin.PULL_DOWN)
Red= Pin(28, Pin.OUT)
Green= Pin(27, Pin.OUT)
Blue= Pin(26, Pin.OUT)
#==================================
while True:
    if (ButtonRed.value() == 1):
        Red.value(1)
        Green.value(0)
        Blue.value(0)

    if (ButtonGreen.value() == 1):
        Green.value(1)
        Red.value(0)
        Blue.value(0)
   
    if (ButtonBlue.value() == 1):
        Blue.value(1)
        Red.value(0)
        Green.value(0)
    if (ButtonReset.value() == 1):
        Red.value(0)
        Green.value(0)
        Blue.value(0)
BOOTSELLED1239USBRaspberryPiPico©2020RP2-8020/21P64M15.00TTT