Skip to main content

Crate butt_head

Crate butt_head 

Source
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§

ButtHead
Button input processor.
Config
Configuration for a ButtHead instance.
UpdateResult
The result of a single update() call.

Enums§

Event
A button event produced by the state machine.
ServiceTiming
Indicates when update() should next be called.

Traits§

TimeDuration
Abstraction for a duration of time.
TimeInstant
Abstraction for a point in time.