Component: LED Template (LED)

From Flowcode Help
Jump to navigationJump to search
Author Matrix Ltd
Version 1.3
Category LED


LED Template component

Base for creating LEDs and other on/off visual indicators. Choose a 'Target Object' that will change colour when the pin changes; if multiple objects must change color, group them, and target the group. When 'Auto off color" is selected, changing the 'on color' will automatically choose an off color by reducing the on-color intensity.

Component Source Code

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

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

Detailed description

No detailed description exists yet for this component

Examples

No additional examples







Macro reference

TurnOff

Fc9-comp-macro.png TurnOff
Turn the LED off. Active high - The pin is configured to output low. Active low - The pin is configured to output high. 
Fc9-void-icon.png - VOID Return


TurnOn

Fc9-comp-macro.png TurnOn
Turn the LED on. Active high - The pin is configured to output high. Active low - The pin is configured to output low. 
Fc9-void-icon.png - VOID Return


Property reference

Fc9-prop-icon.png Properties
Fc9-conn-icon.png Connections
Fc9-type-5-icon.png Pin
Chip pin to connect the LED to. 
Fc9-type-16-icon.png Polarity
Active High: Pin true -> On color, Pin false -> Off color Active Low: Pin true -> Off color, Pin false -> On color 
Fc9-conn-icon.png Simulation
Fc9-type-17-icon.png Target Object
Set a target object to be the illuminating part of the LED. To change the colour of multiple objects, group them first, then target the group. 
Fc9-type-1-icon.png On Color
The color of the LED when it is turned on. 
Fc9-type-1-icon.png Off Color
The color of the LED when it is turned off. 
Fc9-type-7-icon.png Auto Off Color
When this is selected, the off color is automatically set to a darker version of the on color.