From 7a1bd2ff2d2df6283a907d28bd40e7db0d509636 Mon Sep 17 00:00:00 2001 From: brentru Date: Mon, 3 Jun 2019 17:27:34 -0400 Subject: [PATCH] add property to period methods --- .../microcontroller/generic_linux/sysfs_pwmout.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/adafruit_blinka/microcontroller/generic_linux/sysfs_pwmout.py b/src/adafruit_blinka/microcontroller/generic_linux/sysfs_pwmout.py index 89e0cbb..e13b112 100644 --- a/src/adafruit_blinka/microcontroller/generic_linux/sysfs_pwmout.py +++ b/src/adafruit_blinka/microcontroller/generic_linux/sysfs_pwmout.py @@ -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: -- 2.49.0