X-Git-Url: https://git.ayoreis.com/Adafruit_Blinka-hackapet.git/blobdiff_plain/11d2b8cca309cf76414c2fff089686455f2db41c..dca4937cade5f7ba6bd6757d6653864f7240992d:/src/adafruit_blinka/microcontroller/generic_linux/sysfs_pwmout.py diff --git a/src/adafruit_blinka/microcontroller/generic_linux/sysfs_pwmout.py b/src/adafruit_blinka/microcontroller/generic_linux/sysfs_pwmout.py index ae4da4b..1344f4f 100644 --- a/src/adafruit_blinka/microcontroller/generic_linux/sysfs_pwmout.py +++ b/src/adafruit_blinka/microcontroller/generic_linux/sysfs_pwmout.py @@ -26,6 +26,12 @@ class PWMError(IOError): class PWMOut: """Pulse Width Modulation Output Class""" + + # Number of retries to check for successful PWM export on open + PWM_STAT_RETRIES = 10 + # Delay between check for scucessful PWM export on open (100ms) + PWM_STAT_DELAY = 0.1 + # Number of retries to check for successful PWM export on open PWM_STAT_RETRIES = 10 # Delay between check for scucessful PWM export on open (100ms)