Difference between revisions of "Component: LED Template (LED)"
From Flowcode Help
Jump to navigationJump to search(10 intermediate revisions by the same user not shown) | |||
Line 17: | Line 17: | ||
==Component Source Code== | ==Component Source Code== | ||
− | Please click here | + | Please click here to download the component source project: [https://www.flowcode.co.uk/wiki/componentsource/FC_Comp_Source_LED_Base.fcfx FC_Comp_Source_LED_Base.fcfx] |
+ | |||
+ | Please click here to view the component source code (Beta): [https://www.flowcode.co.uk/FlowchartView/?wfile=componentsource/FC_Comp_Source_LED_Base.fcfx FC_Comp_Source_LED_Base.fcfx] | ||
==Detailed description== | ==Detailed description== | ||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
Line 26: | Line 40: | ||
==Examples== | ==Examples== | ||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
Line 31: | Line 57: | ||
''<span style="color:red;">No additional examples</span>'' | ''<span style="color:red;">No additional examples</span>'' | ||
− | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | ==Macro reference== | ||
+ | |||
+ | ===TurnOff=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]] | | width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]] | ||
− | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | ''' | + | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''TurnOff''' |
|- | |- | ||
− | | colspan="2" | Turn the LED off. | + | | colspan="2" | Turn the LED off. Active high - The pin is configured to output low. Active low - The pin is configured to output high. |
|- | |- | ||
|- | |- | ||
Line 46: | Line 85: | ||
+ | ===TurnOn=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]] | | width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]] | ||
− | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | ''' | + | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''TurnOn''' |
|- | |- | ||
− | | colspan="2" | Turn the LED | + | | colspan="2" | Turn the LED on. Active high - The pin is configured to output high. Active low - The pin is configured to output low. |
|- | |- | ||
|- | |- | ||
Line 57: | Line 97: | ||
| width="90%" style="border-top: 2px solid #000;" | ''Return'' | | width="90%" style="border-top: 2px solid #000;" | ''Return'' | ||
|} | |} | ||
− | |||
− | |||
Latest revision as of 10:26, 20 October 2023
Author | Matrix Ltd |
Version | 1.3 |
Category | LED |
Contents
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
TurnOff | |
Turn the LED off. Active high - The pin is configured to output low. Active low - The pin is configured to output high. | |
- VOID | Return |
TurnOn
TurnOn | |
Turn the LED on. Active high - The pin is configured to output high. Active low - The pin is configured to output low. | |
- VOID | Return |