From: Christopher Alessandro Date: Sat, 18 May 2019 00:13:31 +0000 (-0700) Subject: Commenting these out gets rid of errors and allows the pwm to export. X-Git-Tag: 1.3.3~1^2~1 X-Git-Url: https://git.ayoreis.com/Adafruit_Blinka-hackapet.git/commitdiff_plain/f599d177e9baa31e507c6633681dcfc65b73c759 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. --- 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