X-Git-Url: https://git.ayoreis.com/Adafruit_Blinka-hackapet.git/blobdiff_plain/ef2657eaa1caf3262c6bbe1f2df5b6ed08f72162..c2bc4a90827f28abb6b51eae659a1f80a65c0497:/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()