Skip to content

Instantly share code, notes, and snippets.

@ArshSekhon
Created May 4, 2019 02:58
Show Gist options
  • Save ArshSekhon/bd2fbe4075d43d404f8f8839442c4e43 to your computer and use it in GitHub Desktop.
Save ArshSekhon/bd2fbe4075d43d404f8f8839442c4e43 to your computer and use it in GitHub Desktop.
Code for creating a blinking LED circuit with Arduino
#define LED_PIN 13
void setup() {
pinMode(LED_PIN,OUTPUT); // use pin 13 in OUTPUT MODE
}
void loop() {
digitalWrite(LED_PIN, HIGH); // set pin to High Voltage : LED ON
delay(1000); // wait for 1 sec
digitalWrite(LED_PIN,LOW); // set pin to Low Voltage : LED OFF
delay(1000); // wait for 1 sec
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment