Skip to content

Instantly share code, notes, and snippets.

@ZiTAL
Last active February 12, 2016 18:56
Show Gist options
  • Save ZiTAL/3c54be6310e57c90aed6 to your computer and use it in GitHub Desktop.
Save ZiTAL/3c54be6310e57c90aed6 to your computer and use it in GitHub Desktop.
arduino: wait, function to replace delay
// delay function stops arduino X miliseconds, wait simply wait... :D
// i: miliseconds
void wait(int i)
{
long time = millis()+i;
while(millis()<time)
{
// do... nothing :)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment