Skip to content

Button Input: Debouncing, State Machines, and Type Safety

Buttons are harder than LEDs—hardware bounce, non-blocking debouncing, state machines, plus type-safe refactoring in C++.

Motivation

Hardware Fundamentals

HAL and Polling

Debouncing

C++ Refactoring Evolution

Interrupts and Summary

v0.7.1-2-g3718060 · 3718060 · 2026-07-06