-
Notifications
You must be signed in to change notification settings - Fork 45
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
Non blocking interrupt #23
Comments
This wouldn't be too difficult with a thread, but that involves a thread, of course. There have been discussions about integration the Gpio poll functionality with mio or other async frameworks, although that is a somewhat different concern than a easy-to-use callback interface. Looking at RPi.GPIO, they use a thread. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Similar libraries for GPIO support in other languages (Python RPi.GPIO, WiringPi, etc), provide a background thread for interrupt detection, and callback attaching. For example in python:
I know this is difficult to do in Rust with all the safety, ownership and the like, but that will be great to have.
The text was updated successfully, but these errors were encountered: