rpi-gpio.js icon indicating copy to clipboard operation
rpi-gpio.js copied to clipboard

Pwm

Open francolanzi opened this issue 5 years ago • 3 comments

I added support for PWM signals. It's a prerequisite to write the line: "dtoverlay=pwm-2chan" in the file /boot/config.txt to enable the PWM. I tested it briefly in my Raspberry Pi 3 B, but if someone could do a deeper test, feel free to do that. Any suggestion is welcome!

francolanzi avatar Jul 02 '19 23:07 francolanzi

Thanks very much for the contribution. It's not something I've really explored much as I haven't needed it myself, and it can be difficult keeping up with the limited functionality this module offers currently.

There was a request for it back in #62 though - maybe there is more demand?

I hope you won't mind if I leave this for a bit until I've chance to read up on how it all works a bit more.

JamesBarwell avatar Jul 10 '19 12:07 JamesBarwell

For me this implementation looks similar to the python implementation. There is some further explanation on how the pwm management on the raspberry pi kernel works.

I would be glad to see this pull request merged 🎉.

sholzmayer avatar Dec 20 '20 21:12 sholzmayer

+1 for merging :)

dzek69 avatar Aug 28 '21 21:08 dzek69