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

Device Tree • Re: PWM driver questions

$
0
0
What does the 'echo 0 > /sys/class/pwm/pwmchip0/export' do?
It sets up pwm 0 as being exported via sysfs, and creates the /sys/class/pwm/pwmchip0/pwm0/ subdirectory.
Echo 1 and you'd get the other pwm channel.

You may also find "cat /sys/kernel/debug/pwm" useful as it dumps the state of all PWM devices on the system.

Statistics: Posted by 6by9 — Thu Feb 29, 2024 10:37 pm



Viewing all articles
Browse latest Browse all 5369

Trending Articles