rust_gpiozero icon indicating copy to clipboard operation
rust_gpiozero copied to clipboard

Expose polling mechanism for buttons

Open elprl opened this issue 5 years ago • 1 comments

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

elprl avatar Jun 16 '20 12:06 elprl

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 avatar Jun 17 '20 05:06 rahul-thakoor