Skip to content

Instantly share code, notes, and snippets.

@emilepetrone
Created July 11, 2012 16:19
Show Gist options
  • Save emilepetrone/3091515 to your computer and use it in GitHub Desktop.
Save emilepetrone/3091515 to your computer and use it in GitHub Desktop.
#define LED_PIN 13
void setup () {
pinMode (LED_PIN, OUTPUT); // enable pin 13 for digital output
}
void loop () {
digitalWrite (LED_PIN, HIGH); // turn on the LED
delay (1000); // wait one second (1000 milliseconds)
digitalWrite (LED_PIN, LOW); // turn off the LED
delay (1000); // wait one second
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment