Giter Club home page Giter Club logo

Comments (6)

richardghirst avatar richardghirst commented on August 18, 2024

Hi, if you use the new userspace servod.c implementation, all you should
need to do is comment the entries in the servo2gpio[] array that you don't
want. I.e. in you case, comment all entries but one.

Richard
On 12 Mar 2013 14:41, "Ruirize" [email protected] wrote:

What would I need to change in the kernal driver to only have it use one
GPIO pin?


Reply to this email directly or view it on GitHubhttps://github.com//issues/6
.

from pibits.

theuberchad avatar theuberchad commented on August 18, 2024

Hello,

Firstly this module is fantastic!

I was curious though if you could do the same thing to the kernel driver as well? I was looking at the servoblaster.c code and that it had the following

static uint8_t servo2gpio[] = {
4, // P1-7
17, // P1-11
#ifdef PWM0_ON_GPIO18
1, // P1-5 (GPIO-18, P1-12 is currently PWM0, for debug)
#else
18, // P1-12
#endif
21, // P1-13
22, // P1-15
23, // P1-16
24, // P1-18
25, // P1-22

If I were to comment out all the lines except for pins 4 and 17 would that achieve the same thing?

from pibits.

jminardi avatar jminardi commented on August 18, 2024

@richardghirst Should commenting out still work? I tried that and everything seemed to compile and run fine, but my servo no longer responded to commands. When I first run servod it does list that I only had 1 servo...

from pibits.

richardghirst avatar richardghirst commented on August 18, 2024

It should still work, but I admit I've not tested that. I'll take a look
in the next couple of days.

On Wed, Sep 4, 2013 at 10:36 PM, Jack Minardi [email protected]:

@richardghirst https://github.com/richardghirst Should commenting out
still work? I tried that and everything seemed to compile and run fine, but
my servo no longer responded to commands. When I first run servod it does
list that I only had 1 servo...


Reply to this email directly or view it on GitHubhttps://github.com//issues/6#issuecomment-23826900
.

from pibits.

jminardi avatar jminardi commented on August 18, 2024

@richardghirst After restarting my computer and recompiling again it worked for me.

Thanks for the awesome software!

from pibits.

richardghirst avatar richardghirst commented on August 18, 2024

Closing this as you can now specify which pins you want to use for servos via the --p1pins= option to servod.

from pibits.

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.