Created
June 26, 2020 10:14
-
-
Save lean8086/4a4d95c33e937a29585d8c9d601156ac to your computer and use it in GitHub Desktop.
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
// The setup function runs once when you press reset or power the board | |
void setup() { | |
// Initialize digital pin LED_BUILTIN as an output. | |
pinMode(LED_BUILTIN, OUTPUT); | |
} | |
// The loop function runs over and over again forever | |
void loop() { | |
// Turn the LED on (HIGH is the voltage level) | |
digitalWrite(LED_BUILTIN, HIGH); | |
// Wait for a second | |
delay(1000); | |
// Turn the LED off by making the voltage LOW | |
digitalWrite(LED_BUILTIN, LOW); | |
// Wait for a second | |
delay(1000); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment