Created
May 25, 2012 15:13
-
-
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
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
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