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

Expose polling mechanism for buttons #10

Open
elprl opened this issue Jun 16, 2020 · 1 comment
Open

Expose polling mechanism for buttons #10

elprl opened this issue Jun 16, 2020 · 1 comment
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@elprl
Copy link

elprl commented Jun 16, 2020

Is there a way to expose a polling mechanism as opposed to the blocking process you have right now? Related to this post:
https://stackoverflow.com/questions/62376239/rust-tokio-infinite-loop-for-multiple-buttons-listening

@rahul-thakoor
Copy link
Owner

hey there,

rust_gpiozero uses rppal under the hood. I believe this functionality can be exposed using set_async_interrupt ?

PRs are welcomed :)

@rahul-thakoor rahul-thakoor added help wanted Extra attention is needed enhancement New feature or request labels Jul 22, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants