gpio
gpio copied to clipboard
Enable pullup/pulldown config of input pins
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...
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.
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?
Hi there. This project is no longer maintained and the pullup/pulldown support was never implemented.
@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.
Duplicates: https://github.com/EnotionZ/GpiO/issues/27