klipper-dgus/klippy/extras
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
..
display display: FR icon changed to "Feed Rate" (#860) 2018-11-13 10:14:01 -05:00
__init__.py klippy: Add support for dynamic loading of python modules 2018-01-28 12:19:26 -05:00
ad5206.py pins: Explicitly pass can_invert and can_pullup to lookup_pin() 2018-07-26 09:44:45 -04:00
adc_temperature.py adc_temperature: Minor whitespace changes 2018-07-26 10:51:48 -04:00
bed_mesh.py bed_mesh: Fix some fragile identity comparisons 2018-10-31 16:02:45 -04:00
bed_tilt.py bed_tilt: Do not automatically run G28 on BED_TILT_CALIBRATE 2018-10-22 11:26:01 -04:00
buttons.py mcu: Rename add_config_object() to register_config_callback() 2018-09-03 11:48:22 -04:00
delta_calibrate.py delta_calibrate: Do not automatically run G28 on DELTA_CALIBRATE 2018-10-22 11:26:01 -04:00
endstop_phase.py tmc2660: Add endstop phase detection functionality to TMC2660 extra (#816) 2018-10-24 16:01:12 -04:00
fan.py fan: Allow the fan shutdown_speed to be configured 2018-05-18 19:12:03 -04:00
force_move.py force_move: Provide defaults for SET_KINEMATIC_POSITION parameters 2018-08-02 08:58:18 -04:00
gcode_macro.py gcode_macro: Provide more information on a formatting error 2018-09-30 12:43:54 -04:00
heater_bed.py heater: Add PrinterHeaters class that stores all sensors and heaters 2018-04-04 23:13:53 -04:00
heater_fan.py heater_fan: Allow multiple heaters to be defined for a heater_fan 2018-08-17 10:20:12 -04:00
homing_override.py gcode: Rename run_script() to run_script_from_command() 2018-06-30 14:08:02 -04:00
idle_timeout.py idle_timeout: Add printing/ready/idle tracking 2018-10-28 18:39:45 -04:00
mcp4451.py mcp4451: Add initial support for programming the mcp4451 on lpc176x 2018-06-29 21:20:12 -04:00
multi_pin.py pins: Explicitly pass can_invert and can_pullup to lookup_pin() 2018-07-26 09:44:45 -04:00
output_pin.py output_pin: Fix SET_PIN max_val check 2018-06-05 09:12:31 -04:00
pid_calibrate.py pid_calibrate: Add some comments on the calibration methodology 2018-10-19 22:40:11 -04:00
probe.py homing: Pass printer instead of toolhead object to Homing class 2018-10-16 13:09:23 -04:00
quad_gantry_level.py probe: Support manual probing at runtime 2018-10-01 11:12:30 -04:00
query_endstops.py query_endstops: Move QUERY_ENDSTOP command to it own extras/ module 2018-07-16 10:06:30 -04:00
replicape.py mcu: Rename add_config_object() to register_config_callback() 2018-09-03 11:48:22 -04:00
servo.py servo: This patch create ability to enable/disable attached servo. (#880) 2018-11-14 09:38:09 -05:00
spi_temperature.py mcu: Rename add_config_object() to register_config_callback() 2018-09-03 11:48:22 -04:00
static_digital_output.py static_digital_output: Add static_digital_output section to extras/ 2018-03-17 13:06:51 -04:00
statistics.py statistics: Move stats handling to new "extras" module 2018-09-02 13:46:19 -04:00
sx1509.py sx1509: Relax restrictions on SX1509 pins (#836) 2018-10-30 18:08:12 -04:00
temperature_fan.py temperature_fan: Fix issue 403 use max_speed 2018-06-19 11:51:07 -04:00
thermistor.py adccmds: Add support for min/max temperature check filtering 2018-07-02 13:56:34 -04:00
tmc2130.py endstop_phase: Add support for detecting phase via TMC stepper drivers 2018-10-16 13:09:23 -04:00
tmc2208.py endstop_phase: Add support for detecting phase via TMC stepper drivers 2018-10-16 13:09:23 -04:00
tmc2660.py tmc2660: Fix typo in TMC2660 extra (#830) 2018-10-29 12:44:45 -04:00
verify_heater.py verify_heater: Don't report a heater error if printer is shutdown 2018-09-30 10:40:44 -04:00
virtual_sdcard.py gcode: process_batch() should execute commands atomically 2018-10-28 18:39:45 -04:00
z_tilt.py z_tilt: Wrap lines to 80 columns 2018-10-01 11:12:30 -04:00