Jump to content

Component: Simulation LED Template (Indicators): Difference between revisions

From Flowcode Help
Created page with "{| style="width:50%" |- | width="20%" style="color:gray;" | Author | Matrix Ltd |- | width="20%" style="color:gray;" | Version | 1.4 |- | width="20%" style="color:gray..."
No edit summary
Line 15: Line 15:
Base for creating simulation 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 intensity of the on color.
Base for creating simulation 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 intensity of the on color.


==Component Pack==
==Component Source Code==


FREE
Please click here for the component source code: [https://www.flowcode.co.uk/wikicopy/componentsource/FC_Comp_Source_LED_Sim_Base.fcfx FC_Comp_Source_LED_Sim_Base.fcfx]


==Detailed description==
==Detailed description==


''No detailed description exists yet for this component''
''No detailed description exists yet for this component''


==Examples==
==Examples==


''<span style="color:red;">No additional examples</span>''
''<span style="color:red;">No additional examples</span>''
Line 47: Line 51:
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''TurnOff'''
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''TurnOff'''
|-
|-
| colspan="2" | Turn the LED on.&nbsp;
| colspan="2" | Turn the LED off.&nbsp;
|-
|-
|-
|-
Line 65: Line 69:
|-
|-
|-
|-
| width="10%" align="center" style="background-color:#D8C9D8;" | [[File:Fc9-conn-icon.png]]
| width="10%" align="center" style="background-color:#EAE1EA;" | [[File:Fc9-conn-icon.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''Connections'''
| width="90%" style="background-color:#EAE1EA; color:#4B008D;" | Simulation
|-
|-
| width="10%" align="center" style="background-color:#D8C9D8;" | [[File:Fc9-conn-icon.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''Simulations'''
|-
|-
|-
|-

Revision as of 17:48, 9 November 2022

Author Matrix Ltd
Version 1.4
Category Indicators


Simulation LED Template component

Base for creating simulation 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 intensity of the on color.

Component Source Code

Please click here for the component source code: FC_Comp_Source_LED_Sim_Base.fcfx

Detailed description

No detailed description exists yet for this component

Examples

No additional examples

Downloadable macro reference

TurnOn
Turn the LED off. 
- VOID Return


TurnOff
Turn the LED off. 
- VOID Return



Property reference

Properties
Simulation
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. 
Label
Decide what label to show... None - no labels are displayed Name - shows the component's name Property - shows a property value of the component (a field for the property name will appear below) 
On Color
The color of the LED when it is turned on. 
Off Color
The color of the LED when it is turned off. 
Auto Off Color
When this is selected, the off color is automatically set to a reduced intensity version of the on color. 
Startup State
Default state of the indicator when loading the project or starting the simulation runtime.