klipper/klippy
Jiri Dobry e541466591 servo: This patch create ability to enable/disable attached servo. (#880)
Cheap mechanical servos have small flickering. When this servo stay on one position, this flickering slowly destroy internal potentiometer and make servo unusable. Many mechanisms need servo only to change position. Therefore I create this minor path to enable/disable servo. It stop pulses for this servo, that's all.

Corresponding G-code is:
SET_SERVO SERVO=config_name [WIDTH=] [ENABLE=<0|1>]
SET_SERVO SERVO=config_name [ANGLE=] [ENABLE=<0|1>]

For example:
SET_SERVO SERVO=touch ANGLE=80 ENABLE=1 ; enable servo and set position
G4 P200 ; wait 200ms
SET_SERVO SERVO=touch ENABLE=0 ; disable servo

This patch add one option to servo configuration:
enable: <False/True> # default True

It not have impact to user code existing already because it is optional parameter and default value is same as original behavior.

Signed-off-by: Jiri Dobry <jdobry@centrum.cz>
2018-11-14 09:38:09 -05:00
..
chelper chelper: Add a quick __main__ to compile c helper (#782) 2018-10-16 12:21:18 -04:00
extras servo: This patch create ability to enable/disable attached servo. (#880) 2018-11-14 09:38:09 -05:00
kinematics delta: Make sure to clear limit_xy2 after a homing move 2018-10-27 11:54:17 -04:00
clocksync.py clocksync: Simplify is_active() check 2018-05-31 18:20:30 -04:00
configfile.py configfile: Strip trailing comments 2018-10-16 11:45:20 -04:00
console.py console: Use reactor register_callback() mechanism 2018-09-02 12:31:36 -04:00
gcode.py gcode: process_batch() should execute commands atomically 2018-10-28 18:39:45 -04:00
heater.py heater: Add new TURN_OFF_HEATERS command 2018-09-18 16:01:07 -04:00
homing.py endstop_phase: Move endstop phase homing code to new "extras" module 2018-10-16 13:09:23 -04:00
klippy.py klippy: No need to return anything from _connect() method 2018-10-18 15:58:52 -04:00
mathutil.py delta_calibrate: Perform coordinate descent in a background process 2018-10-15 19:01:19 -04:00
mcu.py mcu: Add a set_commanded_position() method to MCU_stepper 2018-10-10 14:30:09 -04:00
msgproto.py msgproto: Add support for a get_constant_int() method 2018-05-28 10:43:40 -04:00
parsedump.py build: Request python2 for all directly executed python binaries 2017-06-27 20:26:02 -04:00
pins.py avr: Add support for atmega328p 2018-10-29 11:55:15 -04:00
queuelogger.py klippy: Automatically clear rollover_info on each restart 2018-04-03 13:18:52 -04:00
reactor.py reactor: Add ability to register callbacks 2018-06-30 14:13:47 -04:00
serialhdl.py serialqueue: Limit message transmission to available receive buffer size 2018-05-28 11:12:30 -04:00
stepper.py endstop_phase: Move endstop phase homing code to new "extras" module 2018-10-16 13:09:23 -04:00
toolhead.py idle_timeout: Add printing/ready/idle tracking 2018-10-28 18:39:45 -04:00
util.py util: Fix versioning when gitdir is absent (#809) 2018-10-27 10:44:38 -04:00