Default press time to 0

This commit is contained in:
Terrence
2025-05-07 16:42:23 +08:00
parent c0acf30b25
commit ee0df3470c
6 changed files with 10 additions and 10 deletions

View File

@@ -11,7 +11,7 @@
class Button {
public:
Button(button_handle_t button_handle);
Button(gpio_num_t gpio_num, bool active_high = false, uint16_t long_press_time = 1000, uint16_t short_press_time = 50);
Button(gpio_num_t gpio_num, bool active_high = false, uint16_t long_press_time = 0, uint16_t short_press_time = 0);
~Button();
void OnPressDown(std::function<void()> callback);