Skip to content

Instantly share code, notes, and snippets.

@Sugeevan
Created April 22, 2016 14:33
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 Sugeevan/540d9d71628f73926d340850be0d65eb to your computer and use it in GitHub Desktop.
Save Sugeevan/540d9d71628f73926d340850be0d65eb to your computer and use it in GitHub Desktop.
// 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