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

How to use poll command with timeout & edge value? #16

Open
LeMoussel opened this issue Mar 31, 2017 · 2 comments
Open

How to use poll command with timeout & edge value? #16

LeMoussel opened this issue Mar 31, 2017 · 2 comments

Comments

@LeMoussel
Copy link

LeMoussel commented Mar 31, 2017

I test gpio-utils on a Raspberry PI 3.
It's Ok for read/write command but I can't use the poll command.
I do this

gpio --config ./raspberrypi.toml poll GPIO07

I got this error

Error setting edge on pin: Io(Error { repr: Os { code: 5, message: "Input/output error" } })

And if I do

gpio --config ./raspberrypi.toml poll GPIO07 both

I got this

error: Found argument 'both' which wasn't expected, or isn't valid in this context

@posborne
Copy link
Member

Similar to my comment on the other issue, I would be curious to see what we find with strace

@posborne
Copy link
Member

I misread this before. If you run gpio poll --help you should get useful output. I believe you would do this as gpio --config ./raspberrypi.toml poll -e both GPIO07 (and you have a separate issue for the other problem).

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

2 participants