X-Git-Url: https://git.ayoreis.com/Adafruit_Blinka-hackapet.git/blobdiff_plain/70b2c4be7ea920982168bb03fc55aa5b0563639c..6c48e5e4be302ba8a78c0d3f6bb614e933447f36:/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()