PWM seems to be completely broken on nightly builds for both Pico and Pico-W #11644
-
I had some code working well under the original 1.20 release, but when using any of the fairly recent nightly builds nothing happens. here is an example. It to a motor driver board.
The called function (once the init is done) is here...
Calling the code from another module is simply like this...
As I said, it worked under the oringinal 1.20 release, but now the nightly builds don't do anything. Gregwa |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 6 replies
-
Do you ever set the frequency anywhere? |
Beta Was this translation helpful? Give feedback.
-
Sorry about that. I'll try to do more testing today. Gregwa |
Beta Was this translation helpful? Give feedback.
tbh, PWM code without an explicit frequency should break, because not enough information has been specified.
@gregwa1953 - you seem to declare things as "broken" (like the I2C discussion before) when you've not specified enough parameters. Don't try to get away with writing the shortest line of code that works now: specify everything you need, and future you will thank you for the clarity when you come to reuse/extend/refactor the code. If, however, fully specified parameters fail to work that used to work fine, that might indicate a breaking change, and it could need attention.