17 auto res = longPressState == LongPress ? ReleasedLong : ReleasedShort;
18 longPressState = Initial;
21 return IncrementShort;
24 if (longPressState == LongPress) {
32 longPressState = LongPress;
33 longPressRepeat = now;
#define BEGIN_AH_NAMESPACE
constexpr unsigned long LONG_PRESS_REPEAT_DELAY
The time between increments/decremnets during a long press.
constexpr unsigned long LONG_PRESS_DELAY
The time in milliseconds before a press is registered as a long press.
#define AH_DIAGNOSTIC_POP()
#define AH_DIAGNOSTIC_WERROR()