aboutsummaryrefslogtreecommitdiffstats
path: root/klippy
Commit message (Collapse)AuthorAgeFilesLines
* configfile: Expose options awaiting to be saved (#5270)Kurt Haenen2022-06-201-3/+22
| | | | | | | Adds a save_config_pending_items to the status reported by configfile reflecting the items and values that a future SAVE_CONFIG would actually persist. Signed-off-by: Kurt Haenen <kurt.haenen@gmail.com>
* bed_mesh: cache mesh statusEric Callahan2022-06-171-7/+13
| | | | | | | Prevent calls to `get_status()` from creating a new status dict on each request. Signed-off-by: Eric Callahan <arksine.code@gmail.com>
* mpu9250: Adding support for MPU-9250 (and MPU-6050) accelerometerbluesforte2022-06-161-0/+461
| | | | | | Add support for mpu9250 accelerometer over I2C bus. Signed-off-by: Harry Beyel <harry3b9@gmail.com>
* delta_calibrate: Fix Python3 error in DELTA_ANALYZEKevin O'Connor2022-06-131-1/+1
| | | | | | Reported by @CODeRUS. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* ds18b20: fix string conversion error on startup (#5559)functionpointer2022-06-081-2/+3
| | | Signed-off-by: Lorenzo Pfeifer <Lorenzo.Pfeifer+github@googlemail.com>
* ds18b20: Don't propagate incorrect temperature on a faultKevin O'Connor2022-06-081-6/+4
| | | | | | | | | Just log an error on a fault. Remove the host check for min/max temperature as the micro-controller code already implements that check. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* ds18b20: Allow some read errorsfunctionpointer2022-06-081-2/+5
| | | | | | | | | | | | | | | | | | | | | Allows a limited number of DS18B20 read failures before stopping the printer. This is designed to tolerate spurious read errors, while still stopping for serious issues. The printer will stop when the sensor fails to report a value five times in a row. Implementation works as follows: The MCU reports any read errors using a new "fault" parameter in its answers. The Python code tracks the number of errors and triggers the shutdown. This paves the way for more sophisticated error handling in the future, as well as an example for other sensors to follow. Signed-off-by: Lorenzo Pfeifer <Lorenzo.Pfeifer+github@googlemail.com>
* virtual_sdcard: Fix merge errorKevin O'Connor2022-06-031-1/+1
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* exclude_objects: initial implementationFrank Tackitt2022-06-031-0/+302
| | | | | | | | | | | | | | | | | | | | | | | | | Adding Klipper functionality to support cancelling objects while printing. This module keeps track of motion in and out of objects and adjusts movements as needed. It also tracks object status and provides that to clients. The Klipper module is relatively simple, and only provides one piece of the workflow. Moonraker already supports processing uploaded files to insert the required gcode markers for cancelling objects, using https://github.com/kageurufu/cancelobject-preprocessor. This library is also available as an executable for use in slicers, and pip installations also include the script as a callable. Mainsail has integrated support, and code changes for Fluidd are available. Support in other interfaces is planned, and we've spoken to several other developers about integrating frontend support in their projects. Signed-off-by: Troy Jacobson <troy.d.jacobson@gmail.com> Co-authored-by: Franklyn Tackitt <git@frank.af> Co-authored-by: Eric Callahan <arksine.code@gmail.com>
* tuning_tower: add is_active() methodTroy Jacobson2022-06-031-0/+2
| | | | | Signed-off-by: Troy Jacobson <troy.d.jacobson@gmail.com> Co-authored-by: Franklyn Tackitt <git@frank.af>
* virtual_sdcard: Add reset_file eventTroy Jacobson2022-06-031-5/+7
| | | | | Signed-off-by: Troy Jacobson <troy.d.jacobson@gmail.com> Co-authored-by: Franklyn Tackitt <git@frank.af>
* virtual_sdcard: Adds on_error_gcodePedro Lamas2022-06-031-0/+8
| | | | Signed-off-by: Pedro Lamas <pedrolamas@gmail.com>
* adxl345: Support recording data from multiple ADXL345's in one run, and ↵Mikkel Schmidt2022-05-231-17/+60
| | | | | | | | | | | more. (#5224) Add PROBE and CHIP to TEST_RESONANCES Since it's possible to specify more than one chip in TEST_RESONANCES the CHIP parameter has been renamed to CHIPS Signed-off-by: Mikkel Schmidt <mikkel.schmidt@gmail.com>
* homing: Fix bug in multi_complete()Kevin O'Connor2022-05-131-1/+2
| | | | | | Reported by @skrogh. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* pins: Improve pin description checksKevin O'Connor2022-05-091-1/+3
| | | | | | | Make sure whitespace isn't in the pin description. Also make sure an alias doesn't map to an invalid pin. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* klippy: Minor changes to message protocol errorKevin O'Connor2022-05-061-33/+18
| | | | | | | | Minor indentation and variable name changes. Don't remove linebreaks from message_protocol_error lines. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* klippy: Reworked the MCU protocol error message (#5470)Felicia Hummel2022-05-061-18/+49
| | | | | | | | | | | | The MCU protocol error message often confuses users, especially after getting bombarded with the config format error line. This PR tries to improve it and has the following goals: - Put the technical error at the end to prevent confusion and avoid the immediate jump to help channels instead of continuing to read - Inform the user first what the type of error is (In this case: MCU Protocol error) and not at the end of the long error message - Give the users a clear instruction what to do (pretty much unchanged), but possibly more approachable because the user is not confused by the technical error anymore - Shows the version numbers of Klipper separate from all MCU version numbers so that it is more obvious that this is the version of Klipper - Separates the version numbers between outdated MCUs and up-to-date MCUs, so that it becomes obvious if a MCU flash failed because the MCU doesn't disappear from the outdated list - Previously, when viewing the errors in a web frontend, additional line breaks made it extremely hard to read the message, sometimes with as little as one word on one line. The error messages are now formatted to not have rogue line breaks, improving readability. Signed-off-by: Felicia Alexa Hummel <felicia@drachenkatze.org>
* shaper_calibrate: Add missing importKevin O'Connor2022-04-231-1/+1
| | | | | | Reported by @Ludy87. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* spicmds: Allow inversion of CS pin for SPI bussesMartin Hierholzer2022-04-221-4/+7
| | | | | Signed-off-by: Martin Hierholzer <martin@hierholzer.info> Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* neopixel: Simplify color_order parsingKevin O'Connor2022-04-181-5/+2
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* pca9632: Fix color_order assignmentKevin O'Connor2022-04-181-1/+1
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* neopixel: Fix color_order assignmentKevin O'Connor2022-04-181-1/+1
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* neopixel: Support chains with a mix of color_orderKevin O'Connor2022-04-181-18/+22
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* led: Remove has_white check from LEDHelperKevin O'Connor2022-04-184-10/+8
| | | | | | There is no harm in checking for a white config setting. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* led: Fix SET_LED TRANSMIT=1 handlingKevin O'Connor2022-04-181-25/+29
| | | | | | | | | | If the final update in a series of SET_LED update commands didn't alter a color than the transmit would not occur - even if prior commands did make color changes. Refactor the update code and fix. Reported by @mstansberry. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* htu21d: SI7021 is has id 0x15 (#5375)Uli2022-04-111-2/+2
| | | | | This is most probably the result of a copy paste error. All vendor documentation for SI7021 (e.g. https://www.silabs.com/documents/public/data-sheets/Si7021-A20.pdf) points to 21 and it actually only works when adapted to 0x15 (=21). Signed-off-by: Uli Wolf <github+klipper@wolf-u.li>
* smart_effector: Initial support of programmable SmartEffectorDmitry Butyugin2022-04-091-0/+154
| | | | Signed-off-by: Dmitry Butyugin <dmbutyugin@google.com>
* temperature_fan: Fix divide by zero error when pid_Ki is zeroKevin O'Connor2022-04-071-1/+3
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* temperature_fan: Remove deprecated pid_integral_max optionKevin O'Connor2022-04-071-3/+1
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* pca9632: Add support for configurable color_orderKevin O'Connor2022-04-071-13/+18
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* pca9632: Support using hardware I2CKevin O'Connor2022-04-071-2/+5
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* neopixel: Support arbitrary RGBW strings in color_order configKevin O'Connor2022-04-061-4/+3
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* led: Support setting display_template parameters via SET_LED_TEMPLATEKevin O'Connor2022-03-312-9/+26
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* led: Support automated LED updates based on display_template resultsKevin O'Connor2022-03-311-1/+94
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* display: Add a new PrinterDisplayTemplate class for tracking template macrosKevin O'Connor2022-03-311-40/+61
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* pca9533: Add support for 4 brightness levelsKevin O'Connor2022-03-311-1/+6
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* pca9533: Update to use LEDHelper classKevin O'Connor2022-03-311-36/+15
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* pca9632: Update to use LEDHelper classKevin O'Connor2022-03-311-59/+34
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* mcp4018: Support setting minclock and reqclock in SoftwareI2C classKevin O'Connor2022-03-311-11/+14
| | | | | | This is in preparation for pca9632 changes. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* dotstar: Update to use LEDHelper classKevin O'Connor2022-03-311-63/+25
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* neopixel: Update to use LEDHelper classKevin O'Connor2022-03-311-78/+35
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* led: Add support for PWM controlled LEDsKevin O'Connor2022-03-311-0/+122
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* pid_calibrate: Improve Python3 compatibility in debug file outputKevin O'Connor2022-03-291-1/+1
| | | | | | Reported by @kpishere. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* angle: Add support for reading tle5012b chip registers (for debugging)Kevin O'Connor2022-03-291-0/+19
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* angle: Initialize tle5012b chip variants to same configurationKevin O'Connor2022-03-291-1/+27
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* angle: Report tle5012b temperatureKevin O'Connor2022-03-291-0/+9
| | | | | | Export the tle5012b temperature readings when performing measurements. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* sensor_angle: Support TLE5012b frame counter for timingKevin O'Connor2022-03-291-7/+89
| | | | | | | Use the tle5012b internal frame counter to calculate the time of each measurement. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* angle: Initial support for angle sensor calibrationKevin O'Connor2022-03-291-2/+256
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* sensor_angle: Add support for bulk querying of spi angle sensorsKevin O'Connor2022-03-291-0/+188
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* atsam: Add support for SAM E70Alex Maclean2022-03-261-0/+4
| | | | Signed-off-by: Alex Maclean <monkeh@monkeh.net>