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