Skip to content

Instantly share code, notes, and snippets.

@malceore
Created September 4, 2017 22:23
Show Gist options
  • Select an option

  • Save malceore/9eab4f4be6a305efa2463a2533ca4d75 to your computer and use it in GitHub Desktop.

Select an option

Save malceore/9eab4f4be6a305efa2463a2533ca4d75 to your computer and use it in GitHub Desktop.
run this to confiugre globals for real program gist
int one = 19;
int two = 20;
int three = 21;
int four = 18;
void setup() {
// put your setup code here, to run once:
pinMode(four, OUTPUT);
pinMode(one, OUTPUT);
pinMode(two, OUTPUT);
pinMode(three, OUTPUT);
}
void loop() {
delay(500); // wait for a second
digitalWrite(one, HIGH);
delay(500);
digitalWrite(one, LOW);
delay(500); // wait for a second
digitalWrite(two, HIGH);
delay(500);
digitalWrite(two, LOW);
delay(500); // wait for a second
digitalWrite(three, HIGH);
delay(500);
digitalWrite(three, LOW);
delay(500);
digitalWrite(four, HIGH);
delay(500);
digitalWrite(four, LOW);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment