04-03-2018, 11:37 AM
Just updated the llibrary with software PWM support.
PWM currently defaults to high-precision mode. This mode achieves the highest possible PWM timing accuracy, and works the same on all platforms/kernels, but uses a lot of CPU time due to the use of a busy-wait.
Low-precision mode is much lighter, but accuracy is kernel-dependent. You'll have to test low-precision mode to see if it's adequate for your needs.
Low-precision mode can be enabled by passing "pwm_precision=GPIO.LOW" as an argument for start()
PWM currently defaults to high-precision mode. This mode achieves the highest possible PWM timing accuracy, and works the same on all platforms/kernels, but uses a lot of CPU time due to the use of a busy-wait.
Low-precision mode is much lighter, but accuracy is kernel-dependent. You'll have to test low-precision mode to see if it's adequate for your needs.
Low-precision mode can be enabled by passing "pwm_precision=GPIO.LOW" as an argument for start()