Convenience layer: read a button.
template<typename Driver >
Read GPIO pin and feed into Button (debounce + edge detection)
Gpio::read() returns logical value (active_low handled by driver), so Button doesn't need inversion logic.
- Template Parameters
-
| Driver | GPIO driver type (e.g., sbl::driver::Gpio) |
- Parameters
-
| btn | Button instance to update |
| handle | GPIO handle for the button pin |
- Note
- ISR-safe — single GPIO register read
Definition at line 39 of file input.hpp.
References sbl::components::input::Button::update().