I have been working on a simple circuit that uses a 10mm RGB led. I have had the same problem again with the red diode dying out after maybe a day. This time I thought I fixed it, but I guess I'm wrong. I have a 330 ohm resistor connected to it, which based on ohms law and the data sheet should be enough, but it just seems to stop working when I turned it on. What might be the problem of this.
Information on the circuit: It's basically a simple thermometer that gives you a idea what the tempature is based off of the color of the RGBled. It uses a attiny85 to control everything and a LM 35 tempature sensor 9 volts is the input to a LM7805 regulator which then feeds to the chip. Then from the outputs of the chip a 330 ohm resistors is connected from the chip to all the anodes.
The data sheet of the LED: http://cdn.sparkfun.com/datasheets/Components/General/YSL-R1047CR4G3BW-F8.pdf