Created
May 4, 2019 02:58
-
-
Save ArshSekhon/bd2fbe4075d43d404f8f8839442c4e43 to your computer and use it in GitHub Desktop.
Code for creating a blinking LED circuit with Arduino
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
#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