rust_gpiozero
rust_gpiozero copied to clipboard
Expose polling mechanism for buttons
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
hey there,
rust_gpiozero uses rppal under the hood. I believe this functionality can be exposed using set_async_interrupt ?
PRs are welcomed :)