Skip to content

Buttons: debouncing, state machines, variant ​

Status: planned

Overview ​

Buttons look simple — the traps are all in the timing: how to debounce mechanical bounce, how to tell a short press from a long one, how states transition. This stop manages the button lifecycle with a state machine and expresses button events with variant, so the type system watches every branch.

Chapter Navigation ​

Content in progress — stay tuned.

pdf-latest-4-g85128cc · 85128cc · 2026-10-05