Jump to content

Component: Switch (Rocker) ()

From Flowcode Help
Revision as of 14:21, 13 July 2026 by SteveT (talk | contribs) (Text replacement - "width="10%" align="center" style="background-color:#D8C9D8;"" to "width="10%" align="center" class="mtx-class-macrohead"")
Author Matrix Ltd
Version 1.0
Category


Switch (Rocker) component

Rocker switch with indicator lamp and properties for changing the colours of each part.

Component Source Code

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

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

Detailed description

No detailed description exists yet for this component

Examples

No additional examples






Macro reference

Property reference

Properties
Colours
LED
Color of the indicator lamp built into the switch. Property sets the 'on' color - 'off' color will be a much darker shade of the same hue. 
Rocker
Color for the moving part of the switch. 
Bezel
Color of the switch bezel (surround) 
Connections
Connection
Chip pin to which this switch is connected. 
Polarity
Sets whether activating the switch tales the chip pin high or low. 
Debounce (ms)
Time in milliseconds allowed for the chip pin to settle after a change of switch state. NB) Debouncing is only used when reading the switch state with the component macros. Chip pins are NOT debounced! 
Simulation
Operation
Latching = Click to turn on, click again to turn off. Momentary = Click to turn on, release to turn off.