How do tricolour LED lights work? (the ones that cycle from colour to colour)?

I was looking for a pack of blue LED's online and came across a red/green/blue cycling LED which only had two leads coming out from it. How do these work?

frollard6 years ago
They have an entire microcontroller built into the plastic housing. You supply the voltage, and it uses PWM to dim the 3 colours to make all the colours.

Convenient package/wiring

Not customizable. Once programmed, its stuck that way forever. (may not be a con)
rickharris6 years ago
Like this