]> Repositories - Adafruit_Blinka-hackapet.git/blobdiff - src/adafruit_blinka/microcontroller/rockchip/PWMOut.py
Added support for Radxa Rock 5C
[Adafruit_Blinka-hackapet.git] / src / adafruit_blinka / microcontroller / rockchip / PWMOut.py
index 56dd2809e1bcb3ea11e9071439de830305287ffb..e152377d76c542aa11487c260634ceca995e9c56 100644 (file)
@@ -78,6 +78,7 @@ class PWMOut:
                 self._chip = pwmout[0][0]
                 self._channel = pwmout[0][1]
 
+
         self._chip_path = os.path.join(
             "/sys/class/pwm", self._chip_path.format(self._chip)
         )
@@ -142,6 +143,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()