mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-06 07:49:52 +03:00
update defaults
This commit is contained in:
@@ -25,8 +25,8 @@ PButton::PButton() {
|
|||||||
// Initialization of default properties
|
// Initialization of default properties
|
||||||
Debounce_ = 40; // Debounce period to prevent flickering when pressing or releasing the button (in ms)
|
Debounce_ = 40; // Debounce period to prevent flickering when pressing or releasing the button (in ms)
|
||||||
DblClickDelay_ = 250; // Max period between clicks for a double click event (in ms)
|
DblClickDelay_ = 250; // Max period between clicks for a double click event (in ms)
|
||||||
LongPressDelay_ = 750; // Hold period for a long press event (in ms)
|
LongPressDelay_ = 9500; // Hold period for a long press event (in ms)
|
||||||
VLongPressDelay_ = 3000; // Hold period for a very long press event (in ms)
|
VLongPressDelay_ = 20000; // Hold period for a very long press event (in ms)
|
||||||
|
|
||||||
cb_onClick = nullptr;
|
cb_onClick = nullptr;
|
||||||
cb_onDblClick = nullptr;
|
cb_onDblClick = nullptr;
|
||||||
|
|||||||
Reference in New Issue
Block a user