Re: [libgpiod] How can I use PWM

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sun, Aug 07, 2022 at 03:20:33PM +0200, Robert Baumgartner wrote:
> Andy, Kent,
> 
> I believe I am on the right track.
> 
> I added following line to my config.txt
> # enable pwm on pin 18
> dtoverlay=pwm,pin=18,func=2
> 
> Now I have
> # ls /sys/class/pwm/pwmchip0
> device  export  npwm  power  subsystem  uevent  unexport
> # lsmod|grep pwm
> pwm_bcm2835            16384  0
> 

Excellent - if the hardware PWMs cover the lines you are interested in
then that is certainly the way to go.

> and an example I found is working
> https://github.com/jdimpson/syspw
> 

I believe that should be syspwm.

Cheers,
Kent.



[Index of Archives]     [Linux SPI]     [Linux Kernel]     [Linux ARM (vger)]     [Linux ARM MSM]     [Linux Omap]     [Linux Arm]     [Linux Tegra]     [Fedora ARM]     [Linux for Samsung SOC]     [eCos]     [Linux Fastboot]     [Gcc Help]     [Git]     [DCCP]     [IETF Announce]     [Security]     [Linux MIPS]     [Yosemite Campsites]

  Powered by Linux