Created
April 22, 2016 14:33
-
-
Save Sugeevan/540d9d71628f73926d340850be0d65eb 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
// Blinking LED | |
const int LED = 13; // LED connected to | |
// tutorial 1 | |
// digital pin 13 | |
void setup() | |
{ | |
pinMode(LED, OUTPUT); // sets the digital | |
// pin as output | |
} | |
void loop() | |
{ | |
digitalWrite(LED, HIGH); // turns the LED on | |
delay(1000); // waits for a second | |
digitalWrite(LED, LOW); // turns 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