mirror of
https://github.com/Klipper3d/klipper.git
synced 2025-07-24 23:24:01 -06:00
mcu: Remove support for set_pwm() cycle_time parameter
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
parent
fd2feff67d
commit
43a9685c58
4 changed files with 13 additions and 32 deletions
|
@ -183,7 +183,7 @@ class SX1509_pwm(object):
|
|||
shutdown_value = 1. - shutdown_value
|
||||
self._start_value = max(0., min(1., start_value))
|
||||
self._shutdown_value = max(0., min(1., shutdown_value))
|
||||
def set_pwm(self, print_time, value, cycle_time=None):
|
||||
def set_pwm(self, print_time, value):
|
||||
self._sx1509.set_register(self._i_on_reg, ~int(255 * value)
|
||||
if not self._invert
|
||||
else int(255 * value) & 0xFF)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue