Giter Club home page Giter Club logo

Comments (5)

deadprogram avatar deadprogram commented on August 26, 2024

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.

ClockVapor avatar ClockVapor commented on August 26, 2024

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.

ClockVapor avatar ClockVapor commented on August 26, 2024

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.

elmatou avatar elmatou commented on August 26, 2024

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.

elmatou avatar elmatou commented on August 26, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.