-
Notifications
You must be signed in to change notification settings - Fork 39
Unable to set different PWM rates on adjacent pins #192
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I hit this too. I'll have a look. |
We're hitting and infinite loop here. |
Thanks for investigating @nseidle - I will keep my eye on this and try to roll in any findings to the v2.0.0 effort |
Whew, I've got a gnarly fix:
Basically, only enter the while loop if there is a segment that is already enabled that is also the segment that the user is asking us to enable. This needs lots of testing but it fixes my code for now. |
@oclyke - Thanks! I'd like your feedback on the viability of this fix. I'm not entirely confident in the PWM arena but I'm learning as I go. |
PR #229 should fix this issue. We'll leave open until merged. |
Closing since #229 was merged |
When using analogWrite or ap3_pwm_output on pins 12 & 13 I'm unable to set different PWM rates without board freezing.
Using Artemis Redboard ATP and Arduino IDE for packages
This code freezes
This code works
By changing pins 12 to 32, both pieces of code function as expected.
edit: fixed typo and markdown
The text was updated successfully, but these errors were encountered: