aboutsummaryrefslogtreecommitdiffstats
path: root/klippy
Commit message (Collapse)AuthorAgeFilesLines
* console: Update for PinResolver changesKevin O'Connor2019-08-191-1/+1
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* board_pins: Improve config error checkingKevin O'Connor2019-08-191-3/+8
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* board_pins: Add a new "extras" module to support per-board pin aliasesKevin O'Connor2019-08-192-2/+38
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* pins: Move reserved pin handling into PinResolver classKevin O'Connor2019-08-195-34/+35
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* tmc2209: Add support for sensorless homingKevin O'Connor2019-08-192-7/+26
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* uc1701: Add support for a reset line on SSD1306 displaysKevin O'Connor2019-08-171-0/+15
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* bus: Add MCU_bus_digital_out helper classKevin O'Connor2019-08-172-24/+47
| | | | | | | Add a helper class for tracking gpio outputs that are synchronized to bus updates on a particular command queue. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* neopixel: Add support for WS2811 RGB pixel color orderKevin O'Connor2019-08-091-14/+17
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* extra: Add Safe Z home extraFlorian Heilmann2019-08-091-0/+82
| | | | Signed-off-by: Florian Heilmann <Florian.Heilmann@gmx.net>
* kinematics: Add get_status() method to kinematicsFlorian Heilmann2019-08-096-0/+19
| | | | Signed-off-by: Florian Heilmann <Florian.Heilmann@gmx.net>
* pins: Add arduino aliases for Adafruit Grand Central boardKevin O'Connor2019-08-091-0/+22
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* neopixel: Rework timing so that it works on AVR micro-controllersKevin O'Connor2019-08-071-3/+0
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* dotstar: Allow any number of chips to be daisy chainedKevin O'Connor2019-08-061-3/+5
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* neopixel: Use low priority for LED updatesKevin O'Connor2019-08-062-2/+8
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* dotstar: Initial support for "dotstar" LEDsKevin O'Connor2019-08-062-5/+66
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* spicmds: Rework spi config commandsKevin O'Connor2019-08-062-34/+28
| | | | | | | | | | Rework the spi_config commands so that bus configuration and shutdown message configuration is done separately from the main "config_spi" command. This makes the spi configuration more flexible. It's now possible to use software spi without a CS pin. It's now possible to define multiple SPI messages to send on a shutdown event. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* tmc_uart: Make sure address is at least 0Kevin O'Connor2019-07-311-1/+1
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* tmc_uart: Add support for configuring the uart address on tmc2209 chipsKevin O'Connor2019-07-312-13/+15
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* menu: use MOVE=1 for offset_z menufess2019-07-311-1/+1
| | | | | | | use SET_GCODE_OFFSET's MOVE=1 parameter in the z offset menu. Less confusing for people who think nothing happened. Signed-off-by: John "Fess" Fessenden <fess@fess.org>
* mcp4728: Update to better match printrbot revf requirementsKevin O'Connor2019-07-261-2/+2
| | | | | | Reported by @Grumps49. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* neopixel: Add support for daisy-chained chipsKevin O'Connor2019-07-231-2/+9
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* neopixel: Add support for setting a default color at startupKevin O'Connor2019-07-231-3/+14
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* tmc_uart: Remove references to the TMC2208 in the generic UART codeKevin O'Connor2019-07-211-6/+6
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* toolhead: No need to build entire look-ahead queue before homingKevin O'Connor2019-07-181-12/+6
| | | | | | | | It's not necessary to fully build up the look-ahead queue prior to starting a "drip move" homing operation. Instead, allow the look-ahead queue to flush normally. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* neopixel: Warn that the neopixel isn't currently supported on AVRKevin O'Connor2019-07-171-0/+3
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* neopixel: Improve timing of gpio bit-bangingKevin O'Connor2019-07-171-3/+3
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* neopixel: Optimize the update loopKevin O'Connor2019-07-121-3/+3
| | | | | | Optimize the transmit code so it can run on some slower ARM cpus. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* neopixel: Add initial support for "neopixel" ledsKevin O'Connor2019-07-121-0/+45
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* toolhead: Delay calculating homing print_time until ready to moveKevin O'Connor2019-07-121-1/+5
| | | | | | | | If the homing move is exceptionally long, it could take a long time for the host to process the look-ahead queue. Delay the print_time calculation until moves are ready to be sent. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* replicape: Try to detect shift register spi on spidev2.1Kevin O'Connor2019-07-121-4/+7
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* endstop: Rename mcu end_stop commands to endstopKevin O'Connor2019-07-121-11/+11
| | | | | | | | | Rename the commands. The main reason for this change is to force a micro-controller code updated (due to important bugfix in 7fefe52d). Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* firmware_retract: Remove z_hop supportKevin O'Connor2019-07-101-18/+6
| | | | | | | | | | | | The current z_hop support did not work correctly with common slicers that change Z height between retract and unretract, and it did not work correctly with slicers that issue a retract at the end of a print and then at the beginning of the next print. The z_hop support is therefore being removed until these issues can be fixed. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* probe: Rework the PROBE_ACCURACY command parametersKevin O'Connor2019-07-101-24/+18
| | | | | | | | | | | Don't default to a Z location of 10, as that could cause damage if the probe's z_offset is greater than 10. Instead, use the "retract distance" method that is used for normal multi-sample probing. Update the PROBE_ACCURACY command parameter names to use the same parameter names as the PROBE command. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* stepcompress: Remove no longer needed stepcompress_set_homing()Kevin O'Connor2019-07-104-32/+3
| | | | | | | Now that homing is implemented via "drip moves", it is no longer necessary for the stepcompress code to have special homing logic. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* toolhead: Remove no longer needed reset_print_time()Kevin O'Connor2019-07-101-8/+2
| | | | | | | Now that homing is implemented via "drip moves", it is no longer necessary to move the print_time backwards. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* homing: Remove no longer needed homing time delay codeKevin O'Connor2019-07-105-44/+11
| | | | | | | | Now that homing is implemented via "drip moves", it is no longer necessary to round the homing speed and it is no longer necessary to add a delay for cpu processing time. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* homing: Implement homing via new toolhead "drip" movementKevin O'Connor2019-07-104-40/+104
| | | | | | | | | | | Rework the low-level implementation of homing movement. The existing mechanism buffers all homing movement into the micro-controller prior to starting the home. Replace with a system that buffers all movement into the host look-ahead buffer and then "drip feed" those moves to the micro-controllers. Then clear the host look-ahead buffer when all endstops trigger. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* toolhead: Change the code to use more explicit state transitionsKevin O'Connor2019-07-101-27/+37
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* mcu: Rework home_wait() to use a reactor completionKevin O'Connor2019-07-101-34/+37
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* serialhdl: Update SendWithRetry to use reactor completionsKevin O'Connor2019-07-102-49/+26
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* reactor: Add support for "completions"Kevin O'Connor2019-07-101-9/+46
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* mcu: Use regular send_with_response() for query_endstop()Kevin O'Connor2019-07-101-16/+13
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* serialhdl: Use register_response() for both registering and unregisteringKevin O'Connor2019-07-101-5/+5
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* mcu: Integrate query_endstop_wait() into query_endstop()Kevin O'Connor2019-07-105-16/+6
| | | | | | There is no need to have two separate calls to query an endstop. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* filament_switch_sensor: add SET_FILAMENT_SENSOR gcodeArksine2019-07-101-2/+13
| | | | Signed-off-by: Eric Callahan <arksine.code@gmail.com>
* filament_switch_sensor: postfix M400 to scriptArksine2019-07-101-1/+1
| | | | | | Finish Moves needs be a hard requirement for the event gcodes, as it eliminates the possiblility of an event firing while the gcode is executing. Signed-off-by: Eric Callahan <arksine.code@gmail.com>
* filament_switch_sensor: remove stale _hande_ready call in the BaseSensorArksine2019-07-101-3/+0
| | | | | | The toolhead attribute is no longer required by the BaseSensor class Signed-off-by: Eric Callahan <arksine.code@gmail.com>
* buttons: initialize mcu buttons based on inverted stateArksine2019-07-051-2/+3
| | | | Signed-off-by: Eric Callahan <arksine.code@gmail.com>
* delayed_gcode: initial implementationArksine2019-07-011-0/+54
| | | | Signed-off-by: Eric Callahan <arksine.code@gmail.com>
* gcode_macro: add iterator to status wrapperJanar Sööt2019-07-011-0/+4
| | | | | | It really helps to see a snapshot of available printer variables when building menus and macros. The list of variables always depends on what printer config you have. Signed-off-by: Janar Sööt <janar.soot@gmail.com>