Skip to content

Instantly share code, notes, and snippets.

@openp2pdesign
Created May 25, 2012 15:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save openp2pdesign/2788681 to your computer and use it in GitHub Desktop.
Save openp2pdesign/2788681 to your computer and use it in GitHub Desktop.
The file that is currently on an Arduino Uno with a serial number of 64935343633351E03172
int ledPin = 13; // LED connected to digital pin 13
void setup()
{
pinMode(ledPin, OUTPUT); // sets the digital pin as output
}
void loop()
{
digitalWrite(ledPin, HIGH); // sets the LED on
delay(1000); // waits for a second
digitalWrite(ledPin, LOW); // sets the LED off
delay(1000); // waits for a second
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment