Component: Switch Template (Switch): Difference between revisions
Appearance
Created page with "{| style="width:50%" |- | width="20%" style="color:gray;" | Author | Matrix Ltd |- | width="20%" style="color:gray;" | Version | 1.1 |- | width="20%" style="color:gray..." |
No edit summary |
||
| Line 20: | Line 20: | ||
==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>'' | ||
== | ==Macro reference== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
Revision as of 14:13, 20 January 2023
| Author | Matrix Ltd |
| Version | 1.1 |
| Category | Switch |
Switch Template component
Base single pin switch with no graphical interface Suitable for building your own switches with custom graphics. If the parent component has properties 'pin', 'polarity', 'debounce' and/or 'operation', they will automatically be forwarded to the base component.
Component Source Code
Please click here for the component source code: FC_Comp_Source_Switch.fcfx
Detailed description
No detailed description exists yet for this component
Examples
No additional examples
Macro reference
| ReadState | |
| Reads the button state as 0 for released or 1 for pressed Performs debounce if required | |
| Return | |
| WaitUntilHigh | |
| Waits until the switch is in state 'high' The interpretation of 'high' depends on the polarity | |
| Return | |
| WaitUntilLow | |
| Waits until the switch is in state 'low' The interpretation of 'high' depends on the polarity | |
| Return | |