This repository has been archived by the owner on Jun 7, 2022. It is now read-only.
Replace synchronous interrupt handler with async stream #7
Labels
enhancement
New feature or request
The gpio-cdev crate now offers a "Stream interface for consuming GPIO events in async code within a tokio runtime". This should allow a much more resource-efficient implementation of
peach-buttons
, which currently relies on a synchronous interrupt handler which polls the pins in a loop (very CPU-intensive).Async example code.
The text was updated successfully, but these errors were encountered: