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

Support GPIO pull-ups #32

Open
captncraig opened this issue Jun 29, 2015 · 4 comments
Open

Support GPIO pull-ups #32

captncraig opened this issue Jun 29, 2015 · 4 comments

Comments

@captncraig
Copy link

The pull-up and down functionality is currently unimplemented in the generic host. I would really like this functionality to be available for rpi.

My current workaround is using github.com/stianeikeland/go-rpio only to set the pull-ups. I'd really rather stick to embd only because I need the i2c and other awesome features.

Their implementation is at https://github.com/stianeikeland/go-rpio/blob/master/rpio.go#L232. It involves some tricky memory mapping of a register file that I am not super comfortable with.

@kidoman
Copy link
Owner

kidoman commented Jun 29, 2015

I will give it a shot :)

Sent from my iPhone

On 29-Jun-2015, at 4:19 pm, Craig Peterson [email protected] wrote:

The pull-up and down functionality is currently unimplemented in the generic host. I would really like this functionality to be available for rpi.

My current workaround is using github.com/stianeikeland/go-rpio only to set the pull-ups. I'd really rather stick to embd only because I need the i2c and other awesome features.

Their implementation is at https://github.com/stianeikeland/go-rpio/blob/master/rpio.go#L232. It involves some tricky memory mapping of a register file that I am not super comfortable with.


Reply to this email directly or view it on GitHub.

@snikch
Copy link

snikch commented Apr 9, 2016

Hey @kidoman - did you ever get a chance to have a look up pull up/down?

@wallaceicy06
Copy link

+1

@ivoras
Copy link

ivoras commented Sep 29, 2017

Just as a notice to anyone in 2017: pullups/pulldowns are still not implemented.
Basically this library cannot be used for driving buttons without additional hardware.
And it's possible to implement them: https://github.com/stianeikeland/go-rpio/blob/master/rpio.go#L232

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

5 participants