from picozero import RGBLED,Pin
from time import sleep
rgb=RGBLED(red=2,green=1,blue=0)
button1=Pin(3,Pin.IN,Pin.PULL_UP)
button2=Pin(4,Pin.IN,Pin.PULL_UP)
button3=Pin(6,Pin.IN,Pin.PULL_UP)
while True:
a=button1.value()
b=button2.value()
c=button3.value()
if(a==0):
rgb.colour=(255,0,0)
sleep(1)
if(b==0):
rgb.colour=(0,255,0)
sleep(1)
if(c==0):
rgb.colour=(0,0,255)
sleep(1)