this is how to use a rgb led with a raspberry pi *****code****** #!/usr/bin/pythonimport timeimport RPi.GPIO as GPIOGPIO.setmode(GPIO.BCM)GPIO.setwarnings(False)#Color blueGPIO.setup(26,GPIO.OUT)#Color greenGPIO.setup(19,GPIO.OUT)# color redGPIO.setup(13,GPIO.OUT)#normal GPIO.output(26,GPIO.HIGH)time.sleep(2)GPIO.output(26,GPIO.LOW)GPIO.output(13,GPIO.HIGH)time.sleep(4)GPIO.output(13,GPIO.LOW)GPIO.output(19,GPIO.HIGH)time.sleep(1)GPIO.output(19,GPIO.LOW)GPIO.output(26,GPIO.HIGH)time.sleep(3)GPIO.output(26,GPIO.LOW)GPIO.output(19,GPIO.HIGH)time.sleep(2)GPIO.output(19,GPIO.LOW)GPIO.output(13,GPIO.HIGH)time.sleep(1)GPIO.output(13,GPIO.LOW)#disco modeGPIO.output(26,GPIO.HIGH)time.sleep(.2)GPIO.output(26,GPIO.LOW)GPIO.output(13,GPIO.HIGH)time.sleep(.4)GPIO.output(13,GPIO.LOW)GPIO.output(19,GPIO.HIGH)time.sleep(.1)GPIO.output(19,GPIO.LOW)GPIO.output(26,GPIO.HIGH)time.sleep(.3)GPIO.output(26,GPIO.LOW)GPIO.output(19,GPIO.HIGH)time.sleep(.2)GPIO.output(19,GPIO.LOW)GPIO.output(26,GPIO.HIGH)time.sleep(.1)GPIO.output(26,GPIO.LOW)GPIO.output(26,GPIO.HIGH)time.sleep(.2)GPIO.output(26,GPIO.LOW)GPIO.output(13,GPIO.HIGH)time.sleep(.7)GPIO.output(13,GPIO.LOW)GPIO.output(19,GPIO.HIGH)time.sleep(.3)GPIO.output(19,GPIO.LOW)GPIO.output(26,GPIO.HIGH)time.sleep(.6)GPIO.output(26,GPIO.LOW)GPIO.output(19,GPIO.HIGH)time.sleep(.2)GPIO.output(19,GPIO.LOW)GPIO.output(26,GPIO.HIGH)time.sleep(.7)GPIO.output(26,GPIO.LOW)GPIO.output(26,GPIO.HIGH)time.sleep(.5)GPIO.output(26,GPIO.LOW)GPIO.output(13,GPIO.HIGH)time.sleep(.2)GPIO.output(13,GPIO.LOW)GPIO.output(19,GPIO.HIGH)time.sleep(.1)GPIO.output(19,GPIO.LOW)GPIO.output(26,GPIO.HIGH)time.sleep(.6)GPIO.output(26,GPIO.LOW)GPIO.output(19,GPIO.HIGH)time.sleep(.1)GPIO.output(19,GPIO.LOW)GPIO.output(26,GPIO.HIGH)time.sleep(.7)GPIO.output(26,GPIO.LOW)GPIO.output(26,GPIO.HIGH)time.sleep(.2)GPIO.output(26,GPIO.LOW)GPIO.output(13,GPIO.HIGH)time.sleep(.4)GPIO.output(13,GPIO.LOW)GPIO.output(19,GPIO.HIGH)time.sleep(.1)GPIO.output(19,GPIO.LOW)GPIO.output(26,GPIO.HIGH)time.sleep(.3)GPIO.output(26,GPIO.LOW)GPIO.output(19,GPIO.HIGH)time.sleep(.2)GPIO.output(19,GPIO.LOW)GPIO.output(26,GPIO.HIGH)time.sleep(.1)GPIO.output(26,GPIO.LOW)GPIO.output(26,GPIO.HIGH)time.sleep(.2)GPIO.output(26,GPIO.LOW)GPIO.output(13,GPIO.HIGH)time.sleep(.4)GPIO.output(13,GPIO.LOW)GPIO.output(19,GPIO.HIGH)time.sleep(.1)GPIO.output(19,GPIO.LOW)GPIO.output(26,GPIO.HIGH)time.sleep(.09)GPIO.output(26,GPIO.LOW)GPIO.output(19,GPIO.HIGH)time.sleep(.2)GPIO.output(19,GPIO.LOW)GPIO.output(26,GPIO.HIGH)time.sleep(.1)GPIO.output(26,GPIO.LOW)  

this is how to use a rgb led with a raspberry pi

****code****

#!/usr/bin/python
import time
import RPi.GPIO as GPIO
GPIO.setmode(GPIO.BCM)
GPIO.setwarnings(False)
#Color blue
GPIO.setup(26,GPIO.OUT)
#Color green
GPIO.setup(19,GPIO.OUT)
# color red
GPIO.setup(13,GPIO.OUT)
#normal
GPIO.output(26,GPIO.HIGH)
time.sleep(2)
GPIO.output(26,GPIO.LOW)
GPIO.output(13,GPIO.HIGH)
time.sleep(4)
GPIO.output(13,GPIO.LOW)
GPIO.output(19,GPIO.HIGH)
time.sleep(1)
GPIO.output(19,GPIO.LOW)
GPIO.output(26,GPIO.HIGH)
time.sleep(3)
GPIO.output(26,GPIO.LOW)
GPIO.output(19,GPIO.HIGH)
time.sleep(2)
GPIO.output(19,GPIO.LOW)
GPIO.output(13,GPIO.HIGH)
time.sleep(1)
GPIO.output(13,GPIO.LOW)
#disco mode
GPIO.output(26,GPIO.HIGH)
time.sleep(.2)
GPIO.output(26,GPIO.LOW)
GPIO.output(13,GPIO.HIGH)
time.sleep(.4)
GPIO.output(13,GPIO.LOW)
GPIO.output(19,GPIO.HIGH)
time.sleep(.1)
GPIO.output(19,GPIO.LOW)
GPIO.output(26,GPIO.HIGH)
time.sleep(.3)
GPIO.output(26,GPIO.LOW)
GPIO.output(19,GPIO.HIGH)
time.sleep(.2)
GPIO.output(19,GPIO.LOW)
GPIO.output(26,GPIO.HIGH)
time.sleep(.1)
GPIO.output(26,GPIO.LOW)
GPIO.output(26,GPIO.HIGH)
time.sleep(.2)
GPIO.output(26,GPIO.LOW)
GPIO.output(13,GPIO.HIGH)
time.sleep(.7)
GPIO.output(13,GPIO.LOW)
GPIO.output(19,GPIO.HIGH)
time.sleep(.3)
GPIO.output(19,GPIO.LOW)
GPIO.output(26,GPIO.HIGH)
time.sleep(.6)
GPIO.output(26,GPIO.LOW)
GPIO.output(19,GPIO.HIGH)
time.sleep(.2)
GPIO.output(19,GPIO.LOW)
GPIO.output(26,GPIO.HIGH)
time.sleep(.7)
GPIO.output(26,GPIO.LOW)
GPIO.output(26,GPIO.HIGH)
time.sleep(.5)
GPIO.output(26,GPIO.LOW)
GPIO.output(13,GPIO.HIGH)
time.sleep(.2)
GPIO.output(13,GPIO.LOW)
GPIO.output(19,GPIO.HIGH)
time.sleep(.1)
GPIO.output(19,GPIO.LOW)
GPIO.output(26,GPIO.HIGH)
time.sleep(.6)
GPIO.output(26,GPIO.LOW)
GPIO.output(19,GPIO.HIGH)
time.sleep(.1)
GPIO.output(19,GPIO.LOW)
GPIO.output(26,GPIO.HIGH)
time.sleep(.7)
GPIO.output(26,GPIO.LOW)
GPIO.output(26,GPIO.HIGH)
time.sleep(.2)
GPIO.output(26,GPIO.LOW)
GPIO.output(13,GPIO.HIGH)
time.sleep(.4)
GPIO.output(13,GPIO.LOW)
GPIO.output(19,GPIO.HIGH)
time.sleep(.1)
GPIO.output(19,GPIO.LOW)
GPIO.output(26,GPIO.HIGH)
time.sleep(.3)
GPIO.output(26,GPIO.LOW)
GPIO.output(19,GPIO.HIGH)
time.sleep(.2)
GPIO.output(19,GPIO.LOW)
GPIO.output(26,GPIO.HIGH)
time.sleep(.1)
GPIO.output(26,GPIO.LOW)
GPIO.output(26,GPIO.HIGH)
time.sleep(.2)
GPIO.output(26,GPIO.LOW)
GPIO.output(13,GPIO.HIGH)
time.sleep(.4)
GPIO.output(13,GPIO.LOW)
GPIO.output(19,GPIO.HIGH)
time.sleep(.1)
GPIO.output(19,GPIO.LOW)
GPIO.output(26,GPIO.HIGH)
time.sleep(.09)
GPIO.output(26,GPIO.LOW)
GPIO.output(19,GPIO.HIGH)
time.sleep(.2)
GPIO.output(19,GPIO.LOW)
GPIO.output(26,GPIO.HIGH)
time.sleep(.1)
GPIO.output(26,GPIO.LOW)