![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
fork of StateScript
Fork of stateScript_v2 by
Diff: hardwareInterface.h
- Revision:
- 1:3a050d26d4f6
- Parent:
- 0:8dbd6bd9167f
--- a/hardwareInterface.h Tue May 19 15:45:42 2015 +0000 +++ b/hardwareInterface.h Wed Jun 03 22:54:25 2015 +0000 @@ -11,7 +11,7 @@ using namespace std; //for debugging output -//#define DEBUGOUTPUT +#define DEBUGOUTPUT //used to organize digital change events struct changeEvent { @@ -40,13 +40,16 @@ virtual int read() = 0; virtual void interrupt_up_callback() = 0; virtual void interrupt_down_callback() = 0; + void setUpdate(bool); changeEvent lastUpEvent; changeEvent lastDownEvent; protected: - + bool updating; + changeEvent bufferedUpEvent; + changeEvent bufferedDownEvent; void addStateChange(int newState, uint32_t timeStamp); };