# Switch module for servo control using S/W PWM
switch.servo.enable true # Enable this module
switch.servo.input_on_command M280 # M280 S7.5 would be midway
switch.servo.input_off_command M281 # Same as M280 S0 0% duty cycle, effectively off
switch.servo.output_pin 2.12 # May be any spare pin
switch.servo.output_type swpwm # Software pwm output settable with S parameter in the input_on_command
#switch.servo.pwm_period_ms 20 # set period to 20ms (50Hz) default is 50Hz
#switch.servo.startup_state false # false uses startup_value on boot true uses default_on_value
#switch.servo.startup_value 7.43 # On boot and HALT it will set this PWM value
#switch.servo.default_on_value 3.3 # This PWM value will be set if M280 doe snot have an S parameter, it is also the value used if startup_state is true
In GitLab by @shvetsandrew on Aug 4, 2020, 12:10