Skip to content

Instantly share code, notes, and snippets.

Last active Jan 10, 2018
What would you like to do?
Arduino Blinking LED Code
// Example 01 : Blinking LED
const int LED = 13; // LED connected to 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(3000); //changed this to 3 secs rather than 1 :)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment