Skip to content

Instantly share code, notes, and snippets.

@montyanderson
Created May 13, 2015 17:49
Show Gist options
  • Save montyanderson/1e4ff456c83a0ba859d6 to your computer and use it in GitHub Desktop.
Save montyanderson/1e4ff456c83a0ba859d6 to your computer and use it in GitHub Desktop.
int led = 12;
void setup() {
// initialize the digital pin as an output.
pinMode(led, OUTPUT);
}
// the loop routine runs over and over again forever:
void loop() {
for(int i = 0; i < 3; i++) {
digitalWrite(led, HIGH); // turn the LED on (HIGH is the voltage level)
delay(200);
digitalWrite(led, LOW);
delay(200);
}
for(int i = 0; i < 12; i++) {
digitalWrite(led, HIGH); // turn the LED on (HIGH is the voltage level)
delay(25);
digitalWrite(led, LOW);
delay(25);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment