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!
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!
Statistics: Posted by danjperron — Sun Mar 17, 2024 11:23 pm