24 button_ = std::unique_ptr<AceButton>(
new AceButton(pin));
25 pinMode(pin, INPUT_PULLUP);
27 ButtonConfig* button_config =
button_->getButtonConfig();
28 button_config->setIEventHandler(
this);
29 button_config->setFeature(ButtonConfig::kFeatureLongPress);
30 button_config->setFeature(ButtonConfig::kFeatureSuppressAfterLongPress);
32 ESP_LOGD(__FILENAME__,
"Button handler started");
35 4, [
this]() { this->
button_->check(); });