Jump to content

Component: LED Multicolour RGB (5mm, PCB) ()

From Flowcode Help
Revision as of 14:37, 13 July 2026 by SteveT (talk | contribs) (Text replacement - "style="background-color:#EAE1EA;"" to "class="mtx-class-propfolder"")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Author Matrix
Version 1.2
Category


LED Multicolour RGB (5mm, PCB) component

A simulatable RGB LED in a standard 5mm through-hole PCB mount package. Three port pins each output a simple PWM signal - one for each of the primary colours. The colors can then be mixed in any proportions to allow the desired color to be produced.

Component Source Code

Please click here to download the component source project: FC_Comp_Source_RGB_LED_5mm.fcfx

Please click here to view the component source code (Beta): FC_Comp_Source_RGB_LED_5mm.fcfx

Detailed description

No detailed description exists yet for this component

Examples

No additional examples






Macro reference

Property reference

Properties
Pin Connections
Red
Pin that the red LED is connected to. 
Green
Pin that the green LED is connected to. 
Blue
Pin tha the Blue pin is connected to. 
Misc
Polarity
Active High: Use for common cathode LEDs - Pin true = LED On. Active Low: Use for common anode LEDs - Pin false = LED On. 
Color bit size
Color bit depth. Sets the resolution of the virtual PWM signals driving the LEDs. Lower values mean that the 'Tick' macro can be called less often, but reduced the number of colours that can be created. 
Rollover value
The number of unique colours each R/G/B channel can output. Range: 0 to (Rollover Value - 1).