]> Repositories - Adafruit_Blinka-hackapet.git/commitdiff
add property to period methods
authorbrentru <robots199@me.com>
Mon, 3 Jun 2019 21:27:34 +0000 (17:27 -0400)
committerbrentru <robots199@me.com>
Mon, 3 Jun 2019 21:27:34 +0000 (17:27 -0400)
src/adafruit_blinka/microcontroller/generic_linux/sysfs_pwmout.py

index 89e0cbb75223b57d921fc509b15fac44e32a2273..e13b112687eb96b05cd00d6da052f093609bca18 100644 (file)
@@ -167,6 +167,8 @@ class PWMOut(object):
         # Update our cached period
         self._period = float(period)
 
+    period = property(_get_period, _set_period)
+
     """Get or set the PWM's output period in seconds.
 
     Raises: