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

From Flowcode Help
Jump to navigationJump to search
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

Fc9-prop-icon.png Properties
Fc9-conn-icon.png Pin Connections
Fc9-type-5-icon.png Red
Pin that the red LED is connected to. 
Fc9-type-5-icon.png Green
Pin that the green LED is connected to. 
Fc9-type-5-icon.png Blue
Pin tha the Blue pin is connected to. 
Fc9-conn-icon.png Misc
Fc9-type-16-icon.png Polarity
Active High: Use for common cathode LEDs - Pin true = LED On. Active Low: Use for common anode LEDs - Pin false = LED On. 
Fc9-type-16-icon.png 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. 
Fc9-type-14-icon.png Rollover value
The number of unique colours each R/G/B channel can output. Range: 0 to (Rollover Value - 1).