Skip to content

Instantly share code, notes, and snippets.

@boxalljohn
Created July 15, 2013 00:35
Show Gist options
  • Save boxalljohn/5996776 to your computer and use it in GitHub Desktop.
Save boxalljohn/5996776 to your computer and use it in GitHub Desktop.
void blinkthree() // the name of my function is "blinkthree"
{
for (int i = 0; i <3; i++) // loop three times
{
digitalWrite(8, HIGH); // turn on LED connected to digital pin 8
delay (1000);
digitalWrite(8, LOW); // turn off LED connected to digital pin 8
delay (1000);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment