gpio icon indicating copy to clipboard operation
gpio copied to clipboard

Enable pullup/pulldown config of input pins

Open knolleary opened this issue 11 years ago • 5 comments

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...

knolleary avatar Apr 18 '13 14:04 knolleary

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.

EnotionZ avatar Apr 18 '13 14:04 EnotionZ

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?

tvl83 avatar Mar 22 '17 21:03 tvl83

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

EnotionZ avatar Mar 24 '17 05:03 EnotionZ

@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 avatar Jul 04 '18 11:07 rzr

Duplicates: https://github.com/EnotionZ/GpiO/issues/27

rzr avatar Aug 10 '18 10:08 rzr