Andy Lustig
/
stateScript_v2
fork of StateScript
Fork of stateScript_v2 by
main.cpp
- Committer:
- alustig3
- Date:
- 2017-04-28
- Revision:
- 10:f65649c13b5b
- Parent:
- 0:8dbd6bd9167f
File content as of revision 10:f65649c13b5b:
#include "behave.h" #ifdef K64HARDWARE extern uint32_t timeKeeper; //the master clock extern bool resetTimer; void tick(){ timeKeeper++; if (resetTimer){ timeKeeper = 0; resetTimer = false; } } Ticker keeptime; int main() { keeptime.attach_us(&tick,1000); #else using namespace std; int main() { #endif mainLoop m; m.init(); m.exec(); }