Created
April 27, 2020 21:02
-
-
Save pulponair/8a9067c54a50b8ea2b23cc5217280c97 to your computer and use it in GitHub Desktop.
This file contains hidden or 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() { | |
// initialize digital pin LED_BUILTIN as an output. | |
pinMode(LED_BUILTIN, OUTPUT); | |
Serial.begin(9600); | |
} | |
// the loop function runs over and over again forever | |
void loop() { | |
digitalWrite(LED_BUILTIN, HIGH); // turn the LED on | |
Serial.println("ON"); | |
delay(500); // wait for half a second | |
digitalWrite(LED_BUILTIN, LOW); // turn the LED off | |
Serial.println("OFF"); | |
delay(500); // wait for half a second | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment