Comments (5)
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...
from pi_piper.
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.
from pi_piper.
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).
from pi_piper.
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)).
from pi_piper.
As of today PWM develop branch support Hardware PWM on pin 18.
if everything is ok please close the issue
from pi_piper.
Related Issues (20)
- Is Pi_Piper ready for RPi 3 ? HOT 4
- Pin.on?/.off? notworking ?
- Seg fault HOT 1
- Gem Version 2.0? HOT 1
- Output pin turns back on after exit HOT 2
- Resource Not Available HOT 2
- Yet Another Problem HOT 9
- Sorry if it's a noob question... HOT 9
- Can't read correct values from a rpi B 1 HOT 5
- One-wire monitoring with PiPiper HOT 2
- Why is lib/pi_piper/driver.rb empty method definitions? HOT 3
- OpenWRT? HOT 1
- tegv
- Behavior of after/watch not as expected HOT 1
- Example of i2c
- Issue with ffi gem dependency
- RPi 3+ 64bits HOT 1
- Race condition on non root user when PiPiper::Pin.new HOT 1
- pi_piper with gtk aborts ruby interpreter (RPi Raspbian Stretch) HOT 1
- Examples with tests
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pi_piper.