Difference between revisions of "Component: Switch (Slide, Dashboard) ()"

From Flowcode Help
Jump to navigationJump to search
Line 17: Line 17:
 
==Component Source Code==
 
==Component Source Code==
  
Please click here for the component source code: [https://www.flowcode.co.uk/wikicopy/componentsource/FC_Comp_Source_Dashboard_Switch.fcfx FC_Comp_Source_Dashboard_Switch.fcfx]
+
Please click here to view the component source code (Beta): [https://www.flowcode.co.uk/FlowchartView/?wfile=componentsource/FC_Comp_Source_Dashboard_Switch.fcfx FC_Comp_Source_Dashboard_Switch.fcfx]
  
 
==Detailed description==
 
==Detailed description==
 +
 +
  
  
Line 30: Line 32:
  
 
==Examples==
 
==Examples==
 +
 +
  
  
Line 40: Line 44:
  
 
==Macro reference==
 
==Macro reference==
 +
 +
 +
 +
==Property reference==
 +
 +
{| class="wikitable" style="width:60%; background-color:#FFFFFF;"
 +
|-
 +
| width="10%" align="center" style="background-color:#D8C9D8;" | [[File:Fc9-prop-icon.png]]
 +
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''Properties'''
 +
|-
 +
|-
 +
| width="10%" align="center" style="background-color:#EAE1EA;" | [[File:Fc9-conn-icon.png]]
 +
| width="90%" style="background-color:#EAE1EA; color:#4B008D;" | Connections
 +
|-
 +
|-
 +
| width="10%" align="center" | [[File:Fc9-type-5-icon.png]]
 +
| width="90%" | Connection
 +
|-
 +
| colspan="2" | Chip pin to which this switch is connected. 
 +
|-
 +
| width="10%" align="center" | [[File:Fc9-type-16-icon.png]]
 +
| width="90%" | Polarity
 +
|-
 +
| colspan="2" | Sets whether the chip pin is taken high or low by the activation of the switch. 
 +
|-
 +
| width="10%" align="center" | [[File:Fc9-type-14-icon.png]]
 +
| width="90%" | Debounce (ms)
 +
|-
 +
| colspan="2" | Time in milliseconds allowed for the pin to stabilise following a change of state.  NB)  Debouncing is only used when reading the switch state using the component macros.        Chip pins are NOT debounced. 
 +
|-
 +
| width="10%" align="center" style="background-color:#EAE1EA;" | [[File:Fc9-conn-icon.png]]
 +
| width="90%" style="background-color:#EAE1EA; color:#4B008D;" | Simulation
 +
|-
 +
|-
 +
| width="10%" align="center" | [[File:Fc9-type-10-icon.png]]
 +
| width="90%" | Text
 +
|-
 +
| colspan="2" | Text for the label displayed below the switch. 
 +
|-
 +
| width="10%" align="center" | [[File:Fc9-type-3-icon.png]]
 +
| width="90%" | Font
 +
|-
 +
| colspan="2" | Font for the text label below the switch. 
 +
|-
 +
| width="10%" align="center" | [[File:Fc9-type-1-icon.png]]
 +
| width="90%" | Label Color
 +
|-
 +
| colspan="2" | Color of the label text below the switch. 
 +
|-
 +
| width="10%" align="center" | [[File:Fc9-type-1-icon.png]]
 +
| width="90%" | Slider Color
 +
|-
 +
| colspan="2" | Color of the slider (moving part) of the switch. 
 +
|-
 +
| width="10%" align="center" | [[File:Fc9-type-1-icon.png]]
 +
| width="90%" | Bezel Color
 +
|-
 +
| colspan="2" | Color for the bezel surrounding the switch. 
 +
|-
 +
| width="10%" align="center" | [[File:Fc9-type-1-icon.png]]
 +
| width="90%" | On Color
 +
|-
 +
| colspan="2" | Color for the flag exposed when the switch is off (switch to the left) 
 +
|-
 +
| width="10%" align="center" | [[File:Fc9-type-1-icon.png]]
 +
| width="90%" | Off Color
 +
|-
 +
| colspan="2" | Color for the flag revealed when the switch is on (right hand position). 
 +
|-
 +
| width="10%" align="center" | [[File:Fc9-type-16-icon.png]]
 +
| width="90%" | Operation
 +
|-
 +
| colspan="2" | Latching = Mouse click to turn on, click again to trun off. Momentary = Click to turn on, release to turn off. 
 +
|}==Macro reference==
  
  

Revision as of 15:13, 20 January 2023

Author Matrix Ltd
Version 1.1
Category


Switch (Slide, Dashboard) component

Simple latching slide switch using the default Matrix dashboard theme.

Component Source Code

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

Detailed description

No detailed description exists yet for this component

Examples

No additional examples

Macro reference

Property reference

Fc9-prop-icon.png Properties
Fc9-conn-icon.png Connections
Fc9-type-5-icon.png Connection
Chip pin to which this switch is connected. 
Fc9-type-16-icon.png Polarity
Sets whether the chip pin is taken high or low by the activation of the switch. 
Fc9-type-14-icon.png Debounce (ms)
Time in milliseconds allowed for the pin to stabilise following a change of state. NB) Debouncing is only used when reading the switch state using the component macros. Chip pins are NOT debounced. 
Fc9-conn-icon.png Simulation
Fc9-type-10-icon.png Text
Text for the label displayed below the switch. 
Fc9-type-3-icon.png Font
Font for the text label below the switch. 
Fc9-type-1-icon.png Label Color
Color of the label text below the switch. 
Fc9-type-1-icon.png Slider Color
Color of the slider (moving part) of the switch. 
Fc9-type-1-icon.png Bezel Color
Color for the bezel surrounding the switch. 
Fc9-type-1-icon.png On Color
Color for the flag exposed when the switch is off (switch to the left) 
Fc9-type-1-icon.png Off Color
Color for the flag revealed when the switch is on (right hand position). 
Fc9-type-16-icon.png Operation
Latching = Mouse click to turn on, click again to trun off. Momentary = Click to turn on, release to turn off. 

==Macro reference==


Property reference

Fc9-prop-icon.png Properties
Fc9-conn-icon.png Connections
Fc9-type-5-icon.png Connection
Chip pin to which this switch is connected. 
Fc9-type-16-icon.png Polarity
Sets whether the chip pin is taken high or low by the activation of the switch. 
Fc9-type-14-icon.png Debounce (ms)
Time in milliseconds allowed for the pin to stabilise following a change of state. NB) Debouncing is only used when reading the switch state using the component macros. Chip pins are NOT debounced. 
Fc9-conn-icon.png Simulation
Fc9-type-10-icon.png Text
Text for the label displayed below the switch. 
Fc9-type-3-icon.png Font
Font for the text label below the switch. 
Fc9-type-1-icon.png Label Color
Color of the label text below the switch. 
Fc9-type-1-icon.png Slider Color
Color of the slider (moving part) of the switch. 
Fc9-type-1-icon.png Bezel Color
Color for the bezel surrounding the switch. 
Fc9-type-1-icon.png On Color
Color for the flag exposed when the switch is off (switch to the left) 
Fc9-type-1-icon.png Off Color
Color for the flag revealed when the switch is on (right hand position). 
Fc9-type-16-icon.png Operation
Latching = Mouse click to turn on, click again to trun off. Momentary = Click to turn on, release to turn off.