Skip to main content

butt_head/
lib.rs

1//! `no_std` button input processing for embedded systems.
2//!
3//! Transforms clean boolean pin states into gesture events — clicks, multi-clicks,
4//! and holds — through a configurable state machine. Pure logic: no I/O, no HAL,
5//! no interrupts required.
6
7#![no_std]
8
9mod time;
10pub use time::{TimeDuration, TimeInstant};
11
12mod event;
13pub use event::Event;
14
15mod service_timing;
16pub use service_timing::ServiceTiming;
17
18mod config;
19pub use config::Config;
20
21mod state_machine;
22
23mod butt_head;
24pub use butt_head::{ButtHead, UpdateResult};