From f599d177e9baa31e507c6633681dcfc65b73c759 Mon Sep 17 00:00:00 2001 From: Christopher Alessandro Date: Fri, 17 May 2019 17:13:31 -0700 Subject: [PATCH] Commenting these out gets rid of errors and allows the pwm to export. Commenting out these lines seems to fix my import errors and I'm now able to successfully use pusleio. --- .../microcontroller/generic_linux/sysfs_pwmout.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/adafruit_blinka/microcontroller/generic_linux/sysfs_pwmout.py b/src/adafruit_blinka/microcontroller/generic_linux/sysfs_pwmout.py index 6266fbb..915c318 100644 --- a/src/adafruit_blinka/microcontroller/generic_linux/sysfs_pwmout.py +++ b/src/adafruit_blinka/microcontroller/generic_linux/sysfs_pwmout.py @@ -90,12 +90,12 @@ class PWMOut(object): except IOError as e: raise PWMError(e.errno, "Exporting PWM pin: " + e.strerror) - self._set_enabled(False) + #self._set_enabled(False) # Look up the period, for fast duty cycle updates self._period = self._get_period() - self.duty_cycle = 0 + #self.duty_cycle = 0 # set frequency self.frequency = freq -- 2.49.0