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

Enable pullup/pulldown config of input pins #12

Open
knolleary opened this issue Apr 18, 2013 · 5 comments
Open

Enable pullup/pulldown config of input pins #12

knolleary opened this issue Apr 18, 2013 · 5 comments

Comments

@knolleary
Copy link

I have been using the pi-gpio module which uses the gpio-admin command under the covers to export pins - rather than manage the files directly.

For a new project, I need to use the inbuilt pullup/pulldown resistors on the pi - this is done via bit-flipping at specific locations in /dev/mem. The gpio-admin command, written in C, exposes this ability which makes it easy to patch into pi-gpio.... and there is an open pull request for it.

However I see that module is no longer actively maintained, so would like to move over to this one.

As this module manages the pins directly, rather than via gpio-admin, it is not such a simple task to add the resistor support. Before I go down the route of getting this to work, I wanted to raise this issue to flag it for anyone else interested in this, or who has perhaps already done it...

@EnotionZ
Copy link
Owner

Hmm the gpio-admin tool looks pretty interesting. I've been meaning to add pullup/pulldown support for a while. I'll probably take a look sometime next week.

@tvl83
Copy link

tvl83 commented Mar 22, 2017

I apologize for replying to something almost 4 years old but @knolleary or @EnotionZ wouldnt happen to have the pullup/pulldown set up with this library?

@EnotionZ
Copy link
Owner

Hi there. This project is no longer maintained and the pullup/pulldown support was never implemented.

@rzr
Copy link
Collaborator

rzr commented Jul 4, 2018

@EnotionZ since native wiring-pi's gpio is the maintained project for Rpi may I suggest to keep maintaining gpio.js as js only alternative, and by the way since it's using sysfs, it may not Rpi specific, so title can be adjusted.

@rzr
Copy link
Collaborator

rzr commented Aug 10, 2018

Duplicates: #27

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

4 participants