aboutsummaryrefslogtreecommitdiffstats
path: root/klippy
Commit message (Collapse)AuthorAgeFilesLines
* bltouch: Issue both a "reset" and a "pin_up" after a successful probeKevin O'Connor2018-12-161-1/+2
| | | | | | | Not all BLTouch clones raise the pin on a "reset" request, so explicitly send a "pin_up" command. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* bltouch: Add a config option to disable the bltouch sensor testKevin O'Connor2018-12-161-1/+5
| | | | | | | | It appears some bltouch "clones" do not report the probe as triggered when put in "touch mode" while the pin is raised. Add a config option to allow users to disable the test. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* bltouch: Always make sure to check the endstop at least every 1msKevin O'Connor2018-12-161-3/+7
| | | | | | | | Some of the bltouch implementations may only respond to a probe event with a 5ms pulse. Make sure to check the signal pin at least every millisecond to ensure no signal is lost. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* bltouch: Fix typo in pin_move_time parsingKevin O'Connor2018-12-041-1/+1
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* bltouch: Allow the pin_move_time to be configuredKevin O'Connor2018-12-041-9/+11
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* bltouch: Add a BLTOUCH_DEBUG commandKevin O'Connor2018-12-031-13/+32
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* bltouch: Fix bug - must restore stepper position after homingKevin O'Connor2018-12-011-0/+7
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* bed_mesh: Introduce fade_target optionArksine2018-11-301-39/+76
| | | | | | To deal potential z scaling when fade is enabled, a fade_target option has been introduced. This option may either be set to 0.0 or any z position within the range of the mesh. A value of 0.0 will result in previous behavior, where z adjustment phases out until no further adjustment is added. A non-zero value will phase out adjustment until the target has been reached, after which the rest of the print will be offset along the z axis by the fade_target. By default the fade_target will be calculated as an average of the mesh. Signed-off-by: Eric Callahan <arksine.code@gmail.com>
* bed_mesh: Disable z-adjustment fade by default.Arksine2018-11-301-1/+1
| | | | | | Due to various potential issues with fading out z-adjustment, it is better to disable by default and allow users to opt-in. Signed-off-by: Eric Callahan <arksine.code@gmail.com>
* bltouch: Add initial support for a bltouch "extras" moduleKevin O'Connor2018-11-302-6/+98
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* mcp4451: Minor update - remove unnecessary mcu importKevin O'Connor2018-11-241-1/+1
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* mcp4451: Use bus.py helper code for i2cKevin O'Connor2018-11-241-22/+10
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* uc1701: Add support for SSD1306 in i2c modeKevin O'Connor2018-11-232-57/+161
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* uc1701: Cache icons and fonts in byte display orderKevin O'Connor2018-11-211-43/+34
| | | | | | | This reduces the amount of bit manipulaton needed during screen updates. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* uc1701: Wrap code to 80 columnsKevin O'Connor2018-11-211-2/+4
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* uc1701: Add all_framebuffers to reduce vram indexing in the codeKevin O'Connor2018-11-211-17/+16
| | | | | | | | | | Add a self.all_framebuffers variable and change self.vram to only contain the new display data. This allows the main code to access the self.vram member variable without the need to index for current/old data. (It also updates the code to match the latest st7920 and hd44780 code.) Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* uc1701: Add support for SSD1306 displaysKevin O'Connor2018-11-212-2/+29
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* display: Add a get_dimensions() method to lcd chip classesKevin O'Connor2018-11-214-5/+7
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* tmc2660: Use bus.py helper code for spiKevin O'Connor2018-11-211-31/+8
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* uc1701: Use bus.py helper code for spiKevin O'Connor2018-11-211-29/+20
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* tmc2130: Use bus.py helper code for spiKevin O'Connor2018-11-211-29/+7
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* ad5206: Use bus.py helper code for spiKevin O'Connor2018-11-211-17/+7
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* replicape: Use bus.py helper code for spiKevin O'Connor2018-11-211-17/+5
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* spi_temperature: Use bus.py helper code for spiKevin O'Connor2018-11-211-16/+7
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* bus: Add klippy/extras/bus.py module with SPI bus helper codeKevin O'Connor2018-11-211-0/+65
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* avr: Add initial support for atmega32u4 chipsKevin O'Connor2018-11-201-0/+1
| | | | | Signed-off-by: Trevor Jones <trevorjones141@gmail.com> Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* console: Try to improve the description of the SUPPRESS commandKevin O'Connor2018-11-161-1/+1
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* lpc176x: Convert i2c code to use standard i2ccmds.cKevin O'Connor2018-11-141-3/+10
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* 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>
* display: FR icon changed to "Feed Rate" (#860)James2018-11-131-13/+13
| | | Signed-off-by: James Wood <j@j-w.co>
* bed_mesh: Fix some fragile identity comparisonsLucas Fink2018-10-311-2/+2
| | | | Signed-off-by: Lucas Fink <software@lfcode.ca>
* sx1509: Relax restrictions on SX1509 pins (#836)Florian Heilmann2018-10-301-6/+6
| | | | | This allows SX1509 pins to be used as temperature fans and heater fans. Heaters are still disallowed. Signed-off-by: Florian Heilmann <Florian.Heilmann@gmx.net>
* tmc2660: Fix typo in TMC2660 extra (#830)Florian Heilmann2018-10-291-1/+1
| | | Signed-off-by: Florian Heilmann <Florian.Heilmann@gmx.net>
* avr: Add support for atmega328pKevin O'Connor2018-10-291-1/+3
| | | | | | | The atmega328p is basically the same as the atmega328 - add explicit support for it so that avrdude doesn't complain while flashing. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* Add DUMP_TMC capabilities to the TMC2660 extraFlorian Heilmann2018-10-281-1/+19
| | | | Signed-off-by: Florian Heilmann <Florian.Heilmann@gmx.net>
* Implement idle event support in the TMC2660 extraFlorian Heilmann2018-10-281-48/+25
| | | | Signed-off-by: Florian Heilmann <Florian.Heilmann@gmx.net>
* idle_timeout: Add printing/ready/idle trackingKevin O'Connor2018-10-282-22/+73
| | | | | | | Internally track the overall printer state. Generate events on state transitions. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* gcode: process_batch() should execute commands atomicallyKevin O'Connor2018-10-283-23/+26
| | | | | | | Update the process_batch() method so that it will not interleave commands read from the input fd with the batched commands. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* sx1509: Raise an error if a pin max_duration is not zeroKevin O'Connor2018-10-271-1/+8
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* delta: Make sure to clear limit_xy2 after a homing moveKevin O'Connor2018-10-271-0/+1
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* delta: Make sure to also exempt the homing retract move from boundary checksKevin O'Connor2018-10-271-8/+11
| | | | | | | | | Commit 459e5219 added a special case to the boundary checks to permit homing moves. In some cases, the second home retract could also be outside the normal boundary checks - extend the special case to also permit that move. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* util: Fix versioning when gitdir is absent (#809)lf2018-10-271-11/+24
| | | | | | | | | | | | | The gitdir previously could be absent and produce a version of "" in spite of checks for it. Fixed. Parent directories with shlex-interpreted characters in their names could be misinterpreted. Removed shlex parsing. Packagers may want to remove the git history to slim down the package size, so add an option for using a file 'version' in the klippy directory to set version without using git. Signed-Off-By: Lucas Fink <software@lfcode.ca>
* Add SX1509 extraFlorian Heilmann2018-10-271-0/+201
| | | | Signed-off-by: Florian Heilmann <Florian.Heilmann@gmx.net>
* extruder: Don't use max_extrude_cross_section in max_extrude_only defaultsKevin O'Connor2018-10-251-4/+5
| | | | | | | | | | Some users increase max_extrude_cross_section to avoid issues with some slicers. However, increasing that value also increases the defaults for the max_extrude_only parameters which is not obvious. Base the max_extrude_only defaults only on the configured nozzle diameter. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* tmc2660: Add endstop phase detection functionality to TMC2660 extra (#816)Florian Heilmann2018-10-242-2/+13
| | | Signed-off-by: Florian Heilmann <Florian.Heilmann@gmx.net>
* bed_mesh: Do not automatically run G28 on BED_MESH_CALIBRATE / BED_MESH_MAPKevin O'Connor2018-10-221-1/+0
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* bed_tilt: Do not automatically run G28 on BED_TILT_CALIBRATEKevin O'Connor2018-10-221-1/+0
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* delta_calibrate: Do not automatically run G28 on DELTA_CALIBRATEKevin O'Connor2018-10-221-1/+0
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* pid_calibrate: Add some comments on the calibration methodologyKevin O'Connor2018-10-191-2/+7
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* display: Check for M117 inside of draw_status()Kevin O'Connor2018-10-181-22/+12
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>