|
Sound Byte Libs 29c5ff3
C++ firmware library for audio applications on 32-bit ARM Cortex-M processors
|
Typedefs | |
| using | Button = sbl::components::control::Button |
| using | ButtonConfig = sbl::components::control::ButtonConfig |
Functions | |
| template<typename Driver > | |
| void | read (Button &btn, const GpioHandle &handle) |
| Read GPIO pin and feed into Button (debounce + edge detection) | |
| using sbl::button::Button = typedef sbl::components::control::Button |
| using sbl::button::ButtonConfig = typedef sbl::components::control::ButtonConfig |
|
inline |
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.
| Driver | GPIO driver type (e.g., sbl::driver::Gpio) |
| btn | Button instance to update |
| handle | GPIO handle for the button pin |
Definition at line 39 of file input.hpp.
References sbl::components::control::Button::update().