mirror of
https://github.com/Klipper3d/klipper.git
synced 2025-07-18 20:28:10 -06:00
mcu: Add support for changing cycle_time in set_pwm()
Signed-off-by: Guy Shapira <gayuha@gmail.com> Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
parent
27cefb2b38
commit
55e20f2c19
6 changed files with 26 additions and 15 deletions
|
@ -46,9 +46,9 @@ class PrinterMultiPin:
|
|||
def set_digital(self, print_time, value):
|
||||
for mcu_pin in self.mcu_pins:
|
||||
mcu_pin.set_digital(print_time, value)
|
||||
def set_pwm(self, print_time, value):
|
||||
def set_pwm(self, print_time, value, cycle_time=None):
|
||||
for mcu_pin in self.mcu_pins:
|
||||
mcu_pin.set_pwm(print_time, value)
|
||||
mcu_pin.set_pwm(print_time, value, cycle_time)
|
||||
|
||||
def load_config_prefix(config):
|
||||
return PrinterMultiPin(config)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue