Browse Source

Allow to define custom button delays for each device

i18n
Xose Pérez 6 years ago
parent
commit
0585f5822b
1 changed files with 11 additions and 0 deletions
  1. +11
    -0
      code/espurna/config/general.h

+ 11
- 0
code/espurna/config/general.h View File

@ -194,10 +194,21 @@ PROGMEM const char* const custom_reset_string[] = {
// BUTTON
//------------------------------------------------------------------------------
#ifndef BUTTON_DEBOUNCE_DELAY
#define BUTTON_DEBOUNCE_DELAY 50 // Debounce delay (ms)
#endif
#ifndef BUTTON_DBLCLICK_DELAY
#define BUTTON_DBLCLICK_DELAY 500 // Time in ms to wait for a second (or third...) click
#endif
#ifndef BUTTON_LNGCLICK_DELAY
#define BUTTON_LNGCLICK_DELAY 1000 // Time in ms holding the button down to get a long click
#endif
#ifndef BUTTON_LNGLNGCLICK_DELAY
#define BUTTON_LNGLNGCLICK_DELAY 10000 // Time in ms holding the button down to get a long-long click
#endif
#define BUTTON_EVENT_NONE 0
#define BUTTON_EVENT_PRESSED 1


Loading…
Cancel
Save