Component: Switch User Images (Switch)
From Flowcode Help
(Redirected from Component: ID d43ac17c 2ec0 4277 95f9 fbc339456fab)
Jump to navigationJump to searchAuthor | Matrix TSL |
Version | 6.0 |
Category | Switch |
Contents
Switch User Images component
A simple digital push switch allowing latched and none latched operation. In embedded mode displays the connecting pin and pin status. The on and off states of the switch are shown using user supplied images allowing customised switches to be created.
Version information
Library Version, Component Version, Date, Author, Info 5, 5.0, 23-09-24, MW, Fixed a bug to make sure switch starts in the off position 5, 5.0, 23-09-24, MW, Added option for simulation only 5, 5.0, 23-09-24, MW, Fixed a bug preventing custom lable posistion from updating on the fly 5, 5.0, 23-09-24, MW, Fixed connection lable so show correct polariy within array 5, 5.0, 15-04-25, MW, Modified switch to show correct value for off when stating and stopping simulation 5, 5.0, 16-04-25, MW, Fixed a bug where Pin x and y lables remained visisble when supposed to be hidden 5, 5.0, 01-05-25, MW, Adjusted pin and component labels and bounds to decrease overall bounds size 5, 5.0, 01-05-25, MW, Changed labels so don't interact and change switch state 5, 5.0, 01-05-25, MW, Corrected pin label properties 5, 5.0, 01-05-25, MW, Added option to hide label 5, 5.0, 01-05-25, MW, Fixed SameAsHandle label to update on rename event 6, 0.0, 01-05-25, MW, Changed switch properties to stop greying out
Detailed description
No detailed description exists yet for this component
Examples
No additional examples
Macro reference
ReadState
![]() |
ReadState |
Reads the button state as 0 for released or 1 for pressed Performs debounce if required | |
![]() |
Return |
SetState
![]() |
SetState |
Sets the switch to be on or off. | |
![]() |
State |
The new state of the switch (true=on, false=off) | |
![]() |
Return |
WaitUntilHigh
![]() |
WaitUntilHigh |
Waits until the switch is in state 'high' The interpretation of 'high' depends on the polarity | |
![]() |
Return |
WaitUntilLow
![]() |
WaitUntilLow |
Waits until the switch is in state 'low' The interpretation of 'high' depends on the polarity | |
![]() |
Return |
Property reference
Component Source Code
Please click here to download the component source project: FC_Comp_Source_Switch_User_Images_2dgi.fcfx
Please click here to view the component source code (Beta): FC_Comp_Source_Switch_User_Images_2dgi.fcfx