17 #define PULL_UP_DISABLED    0    20 #define PULL_UP_ENABLED     1    24 #define DEFAULT_STATE_LOW   0    28 #define DEFAULT_STATE_HIGH  1    35 #define ZUMO_BUTTON 12    43 class PushbuttonStateMachine
    47   PushbuttonStateMachine();
    51   bool getSingleDebouncedRisingEdge(
bool value);
    56   uint16_t prevTimeMillis;
    86   void waitForRelease();
   101   bool getSingleDebouncedPress();
   114   bool getSingleDebouncedRelease();
   122   virtual bool isPressed() = 0;
   126   PushbuttonStateMachine pressState;
   127   PushbuttonStateMachine releaseState;
   157   virtual bool isPressed();