Created
January 22, 2012 00:12
-
-
Save ah01/1654676 to your computer and use it in GitHub Desktop.
IsTime function
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
boolean IsTime(unsigned long *timeMark, unsigned long timeInterval) { | |
if (millis() - *timeMark >= timeInterval) { | |
*timeMark = millis(); | |
return true; | |
} | |
return false; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@scargill So...any solution?