aboutsummaryrefslogtreecommitdiffstats
path: root/klippy/extras/servo.py
Commit message (Collapse)AuthorAgeFilesLines
* servo: This patch create ability to enable/disable attached servo. (#880)Jiri Dobry2018-11-141-4/+16
| | | | | | | | | | | | | | | | | | | 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>
* servo: Wrap lines to 80 columnsKevin O'Connor2018-10-101-10/+15
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* servo: Adding support for startup value for servos (#676)Chris Whiteford2018-10-051-9/+25
| | | Signed-off-by: Chris Whiteford <github@chrisandtennille.com>
* servo: Use new gcode.register_mux_command()Kevin O'Connor2018-05-201-8/+4
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* pins: Remove module level get_printer_pins() and setup_pin() functionsKevin O'Connor2018-04-041-2/+2
| | | | | | | | Most callers did a lookup of the pins module via printer.lookup_object("pins"). Use that as the standard method and remove these less frequently used methods. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* klippy: Introduce load_config_prefix() for modules that take parametersKevin O'Connor2018-02-031-1/+1
| | | | | | | | Use both load_config() and load_config_prefix() functions when dynamically loading a module from the extras directory - if the config section name has parameters in it then use load_config_prefix(). Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* servo: Move the servo code from chipmisc.py to extras directoryKevin O'Connor2018-01-281-0/+59
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>