Created
February 13, 2018 04:19
-
-
Save esmarr58/bc7cee8063611fa884bce201af73df91 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
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