diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2020-09-26 20:52:42 -0400 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2020-09-26 20:55:56 -0400 |
commit | 55e20f2c198ae45485d714b4588fcf6768bc6165 (patch) | |
tree | 48855a33f0b96d7821a297035c432af5df047c26 /klippy/extras/replicape.py | |
parent | 27cefb2b388b668a3747451ab28b9b2a544bb242 (diff) | |
download | kutter-55e20f2c198ae45485d714b4588fcf6768bc6165.tar.gz kutter-55e20f2c198ae45485d714b4588fcf6768bc6165.tar.xz kutter-55e20f2c198ae45485d714b4588fcf6768bc6165.zip |
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>
Diffstat (limited to 'klippy/extras/replicape.py')
-rw-r--r-- | klippy/extras/replicape.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/klippy/extras/replicape.py b/klippy/extras/replicape.py index 9236264f..27def9f3 100644 --- a/klippy/extras/replicape.py +++ b/klippy/extras/replicape.py @@ -74,7 +74,7 @@ class pca9685_pwm: cmd_queue = self._mcu.alloc_command_queue() self._set_cmd = self._mcu.lookup_command( "schedule_pca9685_out oid=%c clock=%u value=%hu", cq=cmd_queue) - def set_pwm(self, print_time, value): + def set_pwm(self, print_time, value, cycle_time=None): clock = self._mcu.print_time_to_clock(print_time) if self._invert: value = 1. - value |