Skip to content

LED (RGB)

RGB tri-color LED with separate red, green, and blue channels

RGB LED component

The RGB LED is a tri-color LED with separate red, green, and blue channels. Each channel accepts a value from 0–255, and the LED renders the blended color as a glow effect behind the component.

It supports both common anode (CA) and common cathode (CC) configurations.

PinDirectionDescription
RBottomRed channel
COMBottomCommon pin (anode or cathode, depends on config)
GBottomGreen channel
BBottomBlue channel
OptionTypeDefaultDescription
typeSelectCCCommon Cathode (shared GND) or Common Anode (shared +V)
InputRangeDescription
r0–255Red channel intensity
g0–255Green channel intensity
b0–255Blue channel intensity
  • The glow intensity is derived from the maximum of R, G, B — a low-balanced color (e.g. r: 50, g: 50, b: 50) may appear dimmer than a single channel at 255