mirror of
https://github.com/Klipper3d/klipper.git
synced 2025-07-08 15:37:31 -06:00
pins: Move reserved pin handling into PinResolver class
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
parent
a482ddf582
commit
395429be14
5 changed files with 35 additions and 34 deletions
|
@ -128,8 +128,9 @@ class servo_pwm:
|
|||
pru_mcu = replicape.mcu_pwm_enable.get_mcu()
|
||||
printer = pru_mcu.get_printer()
|
||||
ppins = printer.lookup_object('pins')
|
||||
ppins.reserve_pin(pru_mcu.get_name(), resv1, config_name)
|
||||
ppins.reserve_pin(pru_mcu.get_name(), resv2, config_name)
|
||||
pin_resolver = ppins.get_pin_resolver(pru_mcu.get_name())
|
||||
pin_resolver.reserve_pin(resv1, config_name)
|
||||
pin_resolver.reserve_pin(resv2, config_name)
|
||||
def setup_cycle_time(self, cycle_time, hardware_pwm=False):
|
||||
self.mcu_pwm.setup_cycle_time(cycle_time, True);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue