]> Repositories - Adafruit_Blinka-hackapet.git/commitdiff
Commenting these out gets rid of errors and allows the pwm to export.
authorChristopher Alessandro <calessandro0827@gmail.com>
Sat, 18 May 2019 00:13:31 +0000 (17:13 -0700)
committerChristopher Alessandro <calessandro0827@gmail.com>
Sat, 18 May 2019 00:13:31 +0000 (17:13 -0700)
Commenting out these lines seems to fix my import errors and I'm now able to successfully use pusleio.

src/adafruit_blinka/microcontroller/generic_linux/sysfs_pwmout.py

index 6266fbb1d37807f619991b76090a2dca6a97db38..915c3182b22d4b2486c33e01381c6455782176bf 100644 (file)
@@ -90,12 +90,12 @@ class PWMOut(object):
         except IOError as e:
             raise PWMError(e.errno, "Exporting PWM pin: " + e.strerror)
 
         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()
 
         
         # 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
 
         # set frequency
         self.frequency = freq