Help with 7 color LED and Arduino requested.

I want to power a 7 color blinking LED from RadioShack (http://www.radioshack.com/product/index.jsp?productId=3060680)
I want the power to the LED to be constant so it stays on. I will have the ground pin connected to ground. I want the switch pin to be hooked up to a pin that I can have it go LOW or have it go to ground, and then have it delay I guess, and then have it go to LOW again so it changes colour. Please help me out. I am very new at C programming and I haven't found anything on Google.
More info on LED: http://www.seanliming.com/Docs/Articles/MSGBB557TA_7_Color_LED.pdf
I want the Arduino to automatically change the color's of a 7 color LED. The LED is connected to power with the anode, and ground with the cathode. There is a third pin that if momentarily connected to ground it will change the color of the LED.

Code similar to this but having pin 11 change from LOW or ground to OFF if possible. I need constant power to the middle pin, constant ground to the pin on the far right, and momentary ground with delay to the pin on the far left. I am getting an Arduino Duemilanove in about 2 days, and I want to write some code for it so I don't have to wait to do anything. I already wrote a rather long police light sketch that has different light patterns using just the LED's and the "delay", "HIGH" and "LOW" commands. I just need to know how to set pin 13 or whatever pin as HIGH without it interfering with the code at all because it will mess up my whole sketch.

Code:
void setup() {
pinMode(13, OUTPUT); //Constant Vcc+
pinMode(12, OUTPUT); //Constant ground
pinMode(11, OUTPUT);
}

void loop() {
digitalWrite(13, HIGH);
digitalWrite(12, LOW);
digitalWrite(11, LOW); //I need this pin to be able to change state with delay without interfering with the other pins.
}   
           

sort by: active | newest | oldest
caitlinsdad6 years ago
Have you looked at the arduino.cc website for sample code and how-to light up a multi-colored or RGB LED?

You need to learn a little bit more programming like how to use nested loops and such to code what you want to do. Good luck.
Wally_Z (author)  caitlinsdad6 years ago
I've Googled everything I can think of, I've checked everywhere. The only thing left is to try forums, I am really new to programming things so I don't really know how to do this.
It starts with being able to blink a single LED.
Wally_Z (author)  caitlinsdad6 years ago
I know how to do that. I already made a police light sketch with 8 different ways the lights flash.
You need to learn a little bit more programming like how to use nested loops and such to code what you want to do. Good luck.