Skip to content

Instantly share code, notes, and snippets.

@z3a
Created February 1, 2013 01:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save z3a/4688441 to your computer and use it in GitHub Desktop.
Save z3a/4688441 to your computer and use it in GitHub Desktop.
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