Skip to content
This repository was archived by the owner on Jun 7, 2022. It is now read-only.
This repository was archived by the owner on Jun 7, 2022. It is now read-only.

Replace synchronous interrupt handler with async stream #7

@mycognosist

Description

@mycognosist

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.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions