Created
July 15, 2013 00:36
-
-
Save boxalljohn/5996779 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
void blinkblink(int blinks) // the name of my function is "blinkblink", and receives an integer which is stored in the variable blinks | |
{ | |
for (int i = 0; i <blinks; i++) // loop "blinks" 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