Last active
June 6, 2020 19:19
-
-
Save pyxn/b55a2ab3a09f827da4890657447d8d71 to your computer and use it in GitHub Desktop.
Arduino Uno - Makes a single LED blink for 1 second
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
void setup() { | |
pinMode(13, OUTPUT); | |
} | |
// the loop function runs over and over again forever | |
void loop() { | |
delay(500); | |
blink(); | |
delay(500); | |
blink(); | |
} | |
void blink() { | |
digitalWrite(LED_BUILTIN, HIGH); | |
delay(1000); | |
digitalWrite(LED_BUILTIN, LOW); | |
delay(1000); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment