Last active
February 17, 2018 09:20
-
-
Save MargenauMaker/2ff9a92784ec684a669148488e6bea81 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
/* | |
multi-line comments can go here in between | |
the symbols you see above and below | |
*/ | |
int A = 3; // whenever A is used in the code it sends a signal through pin 3 | |
int B = 4; // whenever B is used in the code it sends a signal through pin 4 | |
// the setup function runs once when you press reset or power the board | |
void setup() { | |
// initialize digital pin 13 as an output. | |
pinMode(A, OUTPUT); | |
pinMode(B, OUTPUT); | |
} | |
// the loop function runs over and over again forever | |
void loop() { | |
digitalWrite(A, HIGH); | |
delay(1000); | |
digitalWrite(A, LOW); | |
delay(1000); | |
digitalWrite(B, HIGH); | |
delay(1000); | |
digitalWrite(B, LOW); | |
delay(1000); // 2 slashes allow a line of comment | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment