Skip to content

Instantly share code, notes, and snippets.

@MargenauMaker
Last active February 17, 2018 09:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save MargenauMaker/2ff9a92784ec684a669148488e6bea81 to your computer and use it in GitHub Desktop.
Save MargenauMaker/2ff9a92784ec684a669148488e6bea81 to your computer and use it in GitHub Desktop.
/*
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