Yes, you are right with this wait condition.Ok the usleep is maybe to long!
you export pwm0 and then pwm1
maybe pwm0 is activated when you export pwm1 and this is why it works!
On my version I was exporting and right away write the period value and it didn't work.
So maybe just exporting and do something else other the pin you just exported will work!
I think that just adding a small delay after all exporting just make things safer!
BTW here is link to project i promised to create:
Code:
https://github.com/9onemandev/RPi5-PWM-Qt
Statistics: Posted by jryba — Mon Mar 18, 2024 5:01 pm