14 #ifndef __ENGDUINOBUTTON_H__
15 #define __ENGDUINOBUTTON_H__
20 #define DEBOUNCE_DELAY 50
23 extern "C" void INT6_vect(
void) __attribute__ ((signal));
33 volatile long lastChangeTime;
34 volatile bool buttonState;
35 volatile bool fallingEdge;
36 volatile bool wasPressedState;
37 volatile bool wasReleasedState;
38 long debounceDelayTime;
41 EngduinoButtonClass();
42 void begin(
long debounceDelay=DEBOUNCE_DELAY);
47 void waitUntilPressed();
48 void waitUntilReleased();
56 friend void INT6_vect();