Intro: Raspberry Pi Tutorial: How to Use a RGB LED
An RGB LED has 4 pins, one for each color (Red, Green, Blue) and a
common cathode. It has three different color-emitting diodes that can be combined to create all sorts of color! Any color is possible depending on how bright each diode is. In this tutorial you will learn how to use an RGB LED with Raspberry Pi and create unique color combinations.
Tutorial updates and more Raspberry Pi tutorials can be found here:
Let's get started!
Step 1: What You Will Need - Hardware
Step 2: The Circuit
The connections are pretty easy, see the image above with breadboard circuit schematic.
Step 3: Python Code
Download the code from here and open it with Thonny Python IDE or run it from terminal.
Step 4: Well Done
You have successfully completed one more Raspberry Pi "How to" tutorial and you learned how to use RGB LED!
I hope you liked this, let me know in the comments below.
Video in Greek language