RGB LEDs are LEDs that contain three independent LEDs in the one package; a Red, Green and Blue LED, making this a 4 legged LED (or sometimes 6 legs if a common leg isn't used).  As with the Tri-colour LEDs, these LEDs can be either common cathode, or common anode.

Three current limiting resistors are needed, one on each LED.  Also, three microcontroller pins are required.

The RGB LED will appear as a HID output with 8 states.  These will be...

State Colour
0 Off
1 Blue
2 Green
3 Blue + Green = Cyan
4 Red
5 Red + Blue = Magenta
6 Red + Green = Yellow
7 Red + Blue + Green = White

Note: The mixed colours will vary based on the actual colour of the individual LEDs and their intensity, controlled by the current limiting resistors.

An RGB LED can be connected to any I/O port.



Components can be given an optional name.  This is seen in the Test tab. Not all applications support the name.  Hidcomp/hidconfig supports names.


The UsagePage and Usage of the LED. See Usages for more information.


Whether the anodes or the cathodes of the internal diodes are connected together.


Defines the amount of electrical current used by the LED in mA. This is used to estimate the USB power draw.  See the section on Power for more information.

See Also

LED, Bicolour LED, Tri-colour LED, LEDs