Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for software PWM #73

Closed
andrewn opened this issue Oct 17, 2016 · 3 comments
Closed

Support for software PWM #73

andrewn opened this issue Oct 17, 2016 · 3 comments

Comments

@andrewn
Copy link
Collaborator

andrewn commented Oct 17, 2016

Raspi-io currently supports the Raspberry Pi's PWM pin via the nebrius/raspi-pwm library that wraps Wiring Pi.

It would be nice to have a way to fall back to Wiring Pi's Software PWM if the pin selected doesn't provide hardware PWM.

This would allow Johnny Five's LED#brightness and LED.RGB to work transparently on the Pi since they both require PWM.

@tralves
Copy link

tralves commented Oct 17, 2016

This kind of exists through the package raspi-soft-pwm.

This package uses pigpio, which in turn uses the pigpio C library.

@andrewn
Copy link
Collaborator Author

andrewn commented Oct 17, 2016

Oops. :-)

Looks like I've duplicated your work by creating another raspi-soft-pwm but using Wiring Pi as the basis instead. I even picked the same name but didn't try to push to NPM otherwise I would have discovered your package!

I think having Raspi-IO support either one of these approaches would be useful.

@nebrius
Copy link
Owner

nebrius commented Nov 29, 2016

Support for raspi-soft-pwm in raspi-io has been published w/ 7.1.0! Thanks again for all of your help @tralves and @andrewn!

@nebrius nebrius closed this as completed Nov 29, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants