def setDisabled(self): """Temporarily disables the PWM output. The next set call will reenable the output. """ hal.setPWMDisabled(self.handle)
def _freePWM(handle): hal.setPWMDisabled(handle) hal.freePWMPort(handle)
def _freePWM(handle: hal.DigitalHandle) -> None: hal.setPWMDisabled(handle) hal.freePWMPort(handle)