Dual Color LEDs
Multi-color LEDs look similar to the single-color type, apart from the 3 or more pins instead of the two. They are ideal for use as indicators if, for example, the system needs to indicate a change of state.
The dual-color LED is illuminated in the same way as a regular LED. Power is applied to the anode with the anode connected to GND or 0Vdc. A current limiting resister would be required as described in Powering an LED๏ปฟ, with the exception that two resistors would be needed. one for each LED.
The following code sample illustrates how a dual-color LED can be implemented.
Device: PIC16F1827 | 1847
Development Board: Radix Nano 18
The RGB LED can be used to produce different colors and is similar in principle to the LED screen. Depending on the intensity of the various base colors, different colors can be produced.
Multi-color LEDs are an interesting way to implement different colors using a few LEDs. With intuitive programming, they can be used effectively in a system application.