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

Advanced users • Re: Pi5 - PWM on GPIO 18

$
0
0
Colour me confused, but I've been testing soft PWM and managed to get results out of that, but I'm also struggling with hardware PWM on the Pi 5...

With the following in config.txt:

Code:

dtoverlay=pwm,pin=12,func=0dtoverlay=pwm,pin=13,func=0dtoverlay=pwm,pin=18,func=3dtoverlay=pwm,pin=19,func=3
From README:
Configures a single PWM channel
If you look at the overlay, it is always targeting the &pwm node, and modifying element 0 (ie the first channel). Your multiple lines therefore replace each other, and the last one will be the final result.
There appears to be no option for altering any channel other than 0.

Statistics: Posted by 6by9 — Wed Mar 06, 2024 1:26 pm



Viewing all articles
Browse latest Browse all 5377

Trending Articles