10 if (incrState == Button::Released) {
16 }
else if (incrState == Button::Rising) {
17 auto res = longPressState == LongPress ? ReleasedLong : ReleasedShort;
18 longPressState = Initial;
20 }
else if (incrState == Button::Falling) {
21 return IncrementShort;
24 if (longPressState == LongPress) {
32 longPressState = LongPress;
33 longPressRepeat = now;
#define BEGIN_AH_NAMESPACE
#define AH_DIAGNOSTIC_POP()
#define AH_DIAGNOSTIC_WERROR()
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.