pi_piper
pi_piper copied to clipboard
Software or hardware PWM output
It would be really great to be able to support hardware or software PWM...
http://learn.adafruit.com/adafruits-raspberry-pi-lesson-8-using-a-servo-motor/the-pwm-and-servo-kernel-module is a way that this could be implemented...
Yeah, this would be really nice. The PWM in Python's RPi.GPIO module works very well for all GPIO pins. I'm pretty sure it's implemented in C.
I'll see if I can get something working on the same level as the Python module.
Okay, @deadprogram, I've got a rough conversion of the RPi.GPIO Python module working in Ruby here. Still some work to do on it, but everything I've tested so far seems to work well. PWM works just as well as the Python counterpart (since everything is implemented in C).
Hi, I get it working through Bcm2835 C libray. checkout : https://github.com/elmatou/pi_piper (4&5 May commits). Code is not very neat for now, i'll PR later (would be easier if the master was up to date (Including "at_exit" issue and/or us of bcm_function)).
As of today PWM develop branch support Hardware PWM on pin 18. if everything is ok please close the issue