19 longPressState = Initial;
23 longPressState = AfterReset;
28 longPressState = AfterReset;
32 return IncrementShort;
37 longPressState = AfterReset;
41 return DecrementShort;
45 }
else if (longPressState != AfterReset && incrState ==
Button::Pressed) {
48 if (longPressState == LongPress) {
54 longPressState = LongPress;
55 longPressRepeat = now;
58 }
else if (longPressState != AfterReset && decrState ==
Button::Pressed) {
61 if (longPressState == LongPress) {
67 longPressState = LongPress;
68 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()