X-Git-Url: https://git.ayoreis.com/Adafruit_Blinka-hackapet.git/blobdiff_plain/a79e37b2729f77faf00545062fc4a8ded1a6eb97..f73c450270e34245d0f5c1a62fbca103bfec99ba:/src/adafruit_blinka/microcontroller/am335x/sysfs_pwmout.py diff --git a/src/adafruit_blinka/microcontroller/am335x/sysfs_pwmout.py b/src/adafruit_blinka/microcontroller/am335x/sysfs_pwmout.py index 84ceaed..2ba1359 100644 --- a/src/adafruit_blinka/microcontroller/am335x/sysfs_pwmout.py +++ b/src/adafruit_blinka/microcontroller/am335x/sysfs_pwmout.py @@ -84,6 +84,9 @@ class PWMOut: if self._channel is None: raise RuntimeError("No PWM channel found for this Pin") + if variable_frequency: + print("Variable Frequency is not supported, continuing without it...") + channel_path = os.path.join( self._sysfs_path, self._channel_path.format(self._channel) ) @@ -121,9 +124,6 @@ class PWMOut: channel_path = os.path.join( self._sysfs_path, self._channel_path.format(self._channel) ) - pin_path = os.path.join( - channel_path, self._pin_path.format(self._channel, self._pwmpin) - ) if self._channel is not None: # self.duty_cycle = 0