rust-embedded/gpio-utils

How to use poll command with timeout & edge value?

LeMoussel opened this issue · 2 comments

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

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

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