|
Sound Byte Libs 0.5.1-121-g3358a44
C++ firmware library for audio applications on 32-bit ARM Cortex-M processors
|
Button input convenience functions. More...
Button input convenience functions.
Composes GPIO driver reads with Button update in a single call.
Usage: #include <sbl/hw/hal/button/input.hpp>
sbl::button::read<sbl::driver::Gpio>(btn, handle);
Definition in file input.hpp.
Go to the source code of this file.
Namespaces | |
| namespace | sbl |
| Root namespace for all Sound Byte Libs code. | |
| namespace | sbl::button |
| Convenience layer: read a button. | |
Typedefs | |
| using | sbl::button::Button = sbl::components::input::Button |
| using | sbl::button::ButtonConfig = sbl::components::input::ButtonConfig |
Functions | |
| template<typename Driver > | |
| void | sbl::button::read (Button &btn, const GpioHandle &handle) |
| Read GPIO pin and feed into Button (debounce + edge detection) | |