Upgrade component versions

This commit is contained in:
Terrence
2025-05-07 15:09:43 +08:00
parent 7c6b9d8fa7
commit 696786ad4c
5 changed files with 25 additions and 14 deletions

View File

@@ -5,6 +5,16 @@
#define TAG "Button"
#if CONFIG_SOC_ADC_SUPPORTED
AdcButton::AdcButton(const button_adc_config_t& adc_config) : Button(nullptr) {
button_config_t btn_config = {
.long_press_time = 2000,
.short_press_time = 50,
};
ESP_ERROR_CHECK(iot_button_new_adc_device(&btn_config, &adc_config, &button_handle_));
}
#endif
Button::Button(button_handle_t button_handle) : button_handle_(button_handle) {
}