This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
switch [2019/04/08 17:33]
wolfmanjm [Hobby Servo]
switch [2019/04/13 17:54] (current)
Line 50: Line 50:
 switch.fan1.startup_value ​                127 switch.fan1.startup_value ​                127
 </​code>​ </​code>​
 +==== Input and Output Pins
 +**NOTE** a switch can have either an input pin defined or an output pin but not both.
 +If for some reason you needed an input pin to control one or more output pins you could define two (or more) switches, one input and one or more outputs. Then the input pin would define the M-codes that turn on/off the output pins in its output_on_command (and/or its output_off_command).
 ==== Input Pin ==== Input Pin