11#include "sygsp-button.hpp"
12#include "sygse-gpio.hpp"
14namespace sygaldry {
namespace sygse {
20template<gpio_num_t pin_number, sygsp::ButtonActive active_level = sygsp::ButtonActive::Low>
34 if constexpr (active_level == sygsp::ButtonActive::Low) gpio::enable_pullup();
35 else gpio::enable_pulldown();
40 inputs.button_state = (char)gpio::level() == (char)active_level;
41 ButtonGestureModel::operator()();
Document the author of an entity, e.g. a component or binding.
Definition sygah-metadata.hpp:39
Document the copyright statement of an entity, e.g. a component or binding.
Definition sygah-metadata.hpp:47
Document a textual description of an entity, e.g. an endpoint, component or binding.
Definition sygah-metadata.hpp:35
Document the name of an entity, e.g. an endpoint, component, or binding.
Definition sygah-metadata.hpp:33
Definition sygse-gpio.hpp:29