X-Git-Url: https://git.ayoreis.com/Adafruit_Blinka-hackapet.git/blobdiff_plain/03548b64a8d7b407b4ae6464c5ffc551be8fc0be..refs/heads/revert-863-do-not-upload-bdist:/src/adafruit_blinka/microcontroller/rockchip/PWMOut.py diff --git a/src/adafruit_blinka/microcontroller/rockchip/PWMOut.py b/src/adafruit_blinka/microcontroller/rockchip/PWMOut.py index 56dd280..1e5d6e4 100644 --- a/src/adafruit_blinka/microcontroller/rockchip/PWMOut.py +++ b/src/adafruit_blinka/microcontroller/rockchip/PWMOut.py @@ -142,6 +142,8 @@ class PWMOut: self.frequency = frequency self.duty_cycle = duty_cycle + self.polarity = "normal" + self.enable() # Cache the period for fast duty cycle updates self._period_ns = self._get_period_ns()