Introducing the Red/Green/Blue (RGB) LED
The Red/Green/Blue (RGB) LED is three LEDs in one. The RGB has four pins with each of the three
shorter pins controlling an individual color: red, green or blue. The longer pin of the RGB is the
common ground pin. You can create a custom-colored LED by turning different colors on and off to
combine them. For example, if you turn on the red pin and green pin, the RGB will light up as yellow.
But which pin is which color? Pick up the RGB so that the longest pin (common ground) is aligned to
the left as shown in the graphic below. The pins are Red, Ground, Green and Blue — starting from
the far left.
Note:
When wiring the RGB, each colored pin still needs a current-limiting resistor in line with the
micro:bit’s I/O pin that you plan to use to control it, as with any standard LED.