aboutsummaryrefslogtreecommitdiffstats
path: root/klippy/chipmisc.py
Commit message (Collapse)AuthorAgeFilesLines
* fan: Clarify hardware_pwm and allow cycle_time to be set on software pwmKevin O'Connor2018-01-291-6/+3
| | | | | | | | Specify hardware pwm cycle times using the same method as software pwm (in seconds, not clock ticks). Allow the fan code to be configured with an explicit cycle time even when using software pwm. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* replicape: Move the replicape code from chipmisc.py to extras directoryKevin O'Connor2018-01-281-217/+1
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* ad5206: Move the ad5206 code from chipmisc.py to extras directoryKevin O'Connor2018-01-281-27/+0
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* servo: Move the servo code from chipmisc.py to extras directoryKevin O'Connor2018-01-281-56/+0
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* multi_pin: Move the multi_pin code from chipmisc.py to extras directoryKevin O'Connor2018-01-281-50/+0
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* klippy: Add access methods and avoid peeking into the printer classesKevin O'Connor2018-01-281-10/+10
| | | | | | | | | Add get_reactor(), lookup_object(), lookup_module_objects(), and set_rollover_info() to the main Printer class so that callers do not need to peek into the class' members. Similarly, add get_printer() and get_name() methods to the ConfigWrapper class. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* chipmisc: Enable replicape steppers dynamicallyKevin O'Connor2018-01-101-4/+25
| | | | | | | | | | Enable all the steppers via the shift registers when the first stepper is enabled, and disable all the steppers once all steppers are disabled. This avoids having to enable all the steppers all of the time. Note that, this support is independent from the current control for each stepper, which is still done individually. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* chipmisc: Fix replicape enable line setupKevin O'Connor2018-01-101-1/+10
| | | | | | | The enable lines are not one per stepper - instead there are 5 distinct enable settings. Handle them properly. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* chipmisc: Support start values on pca9685 pinsKevin O'Connor2018-01-101-18/+25
| | | | | | | Default the pca9685 enable line on if any of the pins attached to it have a non-zero start value. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* pins: Rename parse_pin_desc() to lookup_pin()Kevin O'Connor2018-01-101-2/+2
| | | | | | | Always set the pin_params['type'] field on a pin lookup. Rename parse_pin_desc() to lookup_pin() to make the change more clear. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* mcu: Setup static values via setup_start_value() callKevin O'Connor2018-01-081-17/+16
| | | | | | | Add an "is_static" setting to setup_start_value() and remove the setup_static() method. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* chipmisc: Add multi_pin capabilityKevin O'Connor2017-12-181-0/+50
| | | | | | | | Add the ability to alias multiple output pins from a single pin alias. This makes it possible to support some cases where a single logical output is driven by multiple output pins. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* chipmisc: Add support for output pins set at runtimeKevin O'Connor2017-12-181-15/+63
| | | | | | | Add the ability to define output pins that may be set at runtime with a new SET_PIN extended g-code command. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* mcu: Allow both shutdown and startup values to be set for output pinsKevin O'Connor2017-12-181-6/+8
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* mcu: Remove unneeded MCU_digital_out.get_last_setting() methodKevin O'Connor2017-12-061-4/+0
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* gcode: Move SET_SERVO command from gcode.py to chipmisc.pyKevin O'Connor2017-12-061-4/+18
| | | | | | | Now that commands can be registered dynamically, move the code for SET_SERVO from gcode.py to the PrinterServo() class in chipmisc.py. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* pca9685: Support default valuesKevin O'Connor2017-10-121-4/+15
| | | | | | Allow the pwm pin to have a non-zero default value. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* chipmisc: Add initial support for servosKevin O'Connor2017-09-201-0/+43
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* chipmisc: Add support for Replicape boardKevin O'Connor2017-09-201-1/+173
| | | | | | | Add support for configuring and controlling the hardware specific to the revision "B3" Replicape board. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* chipmisc: Add support for configuring ad5206 digipotsKevin O'Connor2017-08-261-0/+27
| | | | | | | Support an "ad5206" config section so that one can configure the digipots found on Reprap "RAMBo" boards. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* chipmisc: Add support for statically configured output pinsKevin O'Connor2017-08-261-0/+43
Allow digital and PWM output pins to be setup via new config sections. This makes it easier to setup pin configurations. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>