How to Use Pulse Width Modulation (PWM) on an RGB LED and the Raspberry Pi
If you buy a kit with random LEDs, wires, switches, etc, you’re likely to end up with one or two of those funky little LEDs that appears to be white, and has 4 wires instead of 2. I had set mine aside and made a mental note to figure it out later – well, that time has come! The code in this article is available on GitHub, if you’d like to use it or just follow along. ...