Jump to content

Component: Switch (Generic) (): 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.0 |- | width="20%" style="color:gray..."
 
No edit summary
Line 15: Line 15:
Simple push button switch with LED indicator. Momentary or latching action can be chosen in the properties.
Simple push button switch with LED indicator. Momentary or latching action can be chosen in the properties.


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


BASICIO
Please click here for the component source code: [https://www.flowcode.co.uk/wikicopy/componentsource/FC_Comp_Source_sw_generic.fcfx FC_Comp_Source_sw_generic.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 39: Line 43:
|-
|-
|-
|-
| 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;" | Connections
|-
|-
|-
|-
Line 58: Line 62:
| colspan="2" | The time in milliseconds allowed for the button state to settle following a change.  NB)  Debouncing is only used when reading the switch state using the component macros.        Chip pins are NOT debounced.&nbsp;
| colspan="2" | The time in milliseconds allowed for the button state to settle following a change.  NB)  Debouncing is only used when reading the switch state using the component macros.        Chip pins are NOT debounced.&nbsp;
|-
|-
| 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;" | '''Simulations'''
| width="90%" style="background-color:#EAE1EA; color:#4B008D;" | Simulation
|-
|-
|-
|-

Revision as of 17:54, 9 November 2022

Author Matrix Ltd
Version 1.0
Category


Switch (Generic) component

Simple push button switch with LED indicator. Momentary or latching action can be chosen in the properties.

Component Source Code

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

Detailed description

No detailed description exists yet for this component

Examples

No additional examples

Downloadable macro reference

Property reference

Properties
Connections
Connection
Chip pin to which this switch connects. 
Polarity
Selects whether the switch sets the chip pin high or low when activated. 
Debounce (ms)
The time in milliseconds allowed for the button state to settle following a change. NB) Debouncing is only used when reading the switch state using 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.