Make an RGB LED display a rainbow of colors!
                             
            
                
                    ####Hardware connections:
An RGB LED is actually three LEDs (red, green, and blue) in
 one package. When you run them at different brightnesses,
 the red, green and blue mix to form new colors.
 
 Starting at the flattened edge of the flange on the LED,
 the pins are ordered RED, COMMON, GREEN, BLUE.
 
 * Connect RED to a 330 Ohm resistor. Connect the other end
 of the resistor to digital pin 9.
 
 * Connect COMMON pin to GND.
 
 * Connect GREEN to a 330 Ohm resistor. Connect the other end
 of the resistor to digital pin 10.
 
 * Connect BLUE to a 330 Ohm resistor. Connect the other end
 of the resistor to digital pin 11.
 
####Wiring Diagram

                
             
            
         
        
            
            
                
                     Embed This Sketch
                
                Use the following HTML code to embed the sketch code above in your blog or website.
                
<iframe style="height: 510px; width: 100%; margin: 10px 0 10px;" allowTransparency="true" src="https://codebender.cc/embed/sketch:404351" frameborder="0"></iframe>
             
            
            
            
                
                     Embed The Serial Monitor
                
                You can also embed the Serial Monitor section! Just use this HTML code.
                
<iframe style="height: 510px; width: 100%; margin: 10px 0 10px;" allowTransparency="true" src="https://codebender.cc/embed/serialmonitor" frameborder="0"></iframe>