Sound Byte Libs 29c5ff3
C++ firmware library for audio applications on 32-bit ARM Cortex-M processors
Loading...
Searching...
No Matches
Namespaces | Typedefs | Functions
input.hpp File Reference

Button input convenience functions. More...

#include <sbl/types.hpp>
#include <sbl/components/control/button.hpp>
Include dependency graph for input.hpp:

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)
 

Detailed Description

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.