By Jonathan Delgado
@JonDotsoy
int led1 = 13;
int delayTime = 200;
void setup () {
pinMode(led1, OUTPUT);
}
void loop () {
digitalWrite(led1, HIGH);
delay(delayTime);
digitalWrite(led1, LOW);
delay(delayTime);
}
int led1 = 7;
int led2 = 6;
int led3 = 5;
int led4 = 4;
int delayTime = 200;
void setup () {
pinMode(led1, OUTPUT);
pinMode(led2, OUTPUT);
pinMode(led3, OUTPUT);
pinMode(led4, OUTPUT);
}
void loop () {
for (int thisPin = 7; thisPin >= 4; thisPin--) {
digitalWrite(thisPin, HIGH);
delay(delayTime);
}
for (int thisPin = 7; thisPin >= 4; thisPin--) {
digitalWrite(thisPin, LOW);
delay(delayTime);
}
}