Expand description
no_std button input processing for embedded systems.
Transforms clean boolean pin states into gesture events — clicks, multi-clicks, and holds — through a configurable state machine. Pure logic: no I/O, no HAL, no interrupts required.
Structs§
- Butt
Head - Button input processor.
- Config
- Configuration for a
ButtHeadinstance. - Update
Result - The result of a single
update()call.
Enums§
- Event
- A button event produced by the state machine.
- Service
Timing - Indicates when
update()should next be called.
Traits§
- Time
Duration - Abstraction for a duration of time.
- Time
Instant - Abstraction for a point in time.