Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 5243

Beginners • Re: Rpi 5 and Pan Tilt hat

$
0
0
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!
Yes, you are right with this wait condition.
BTW here is link to project i promised to create:

Code:

https://github.com/9onemandev/RPi5-PWM-Qt
Thank you so much once again!

Statistics: Posted by jryba — Mon Mar 18, 2024 5:01 pm



Viewing all articles
Browse latest Browse all 5243

Trending Articles