Created
February 1, 2013 01:32
-
-
Save z3a/4688441 to your computer and use it in GitHub Desktop.
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
long previous; | |
int interval = 400; | |
void setup(){ | |
previous = 0; | |
} | |
void draw(){ | |
long current = millis(); | |
if (current - previous > interval){ | |
previous = current; | |
println("ON"); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment