15 auto res = longPressState == LongPress ? ReleasedLong : ReleasedShort;
16 longPressState = Initial;
18 }
else if (
incrState == Button::Falling) {
19 return IncrementShort;
22 if (longPressState == LongPress) {
30 longPressState = LongPress;
31 longPressRepeat =
now;
#define BEGIN_AH_NAMESPACE
A class for serial-in/parallel-out shift registers, like the 74HC595 that are connected to the SPI bu...
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.