Skip to content

Instantly share code, notes, and snippets.

@esmarr58
Created February 13, 2018 04:19
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 esmarr58/bc7cee8063611fa884bce201af73df91 to your computer and use it in GitHub Desktop.
Save esmarr58/bc7cee8063611fa884bce201af73df91 to your computer and use it in GitHub Desktop.
int contador = 0;
int pin1 = 13;
int pin2 = 12;
int pin3 = 11;
int pin4 = 10;
void setup() {
pinMode(pin1, OUTPUT);
pinMode(pin2, OUTPUT);
pinMode(pin3, OUTPUT);
pinMode(pin4, OUTPUT);
}
void loop() {
digitalWrite(pin1, HIGH); digitalWrite(pin2, LOW); digitalWrite(pin3, LOW); digitalWrite(pin4, LOW);
delay(1000);
digitalWrite(pin1, LOW); digitalWrite(pin2, HIGH); digitalWrite(pin3, LOW); digitalWrite(pin4, LOW);
delay(1000);
digitalWrite(pin1, LOW); digitalWrite(pin2, LOW); digitalWrite(pin3, HIGH); digitalWrite(pin4, LOW);
delay(1000);
digitalWrite(pin1, LOW); digitalWrite(pin2, LOW); digitalWrite(pin3, LOW); digitalWrite(pin4, HIGH);
delay(1000);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment