2019-12-29 17:39:41 +00:00
|
|
|
const int L = 3;
|
|
|
|
const int I = 5;
|
2019-12-28 19:05:20 +00:00
|
|
|
const int N = 4;
|
2019-12-29 17:39:41 +00:00
|
|
|
const int K = 6;
|
2019-12-29 17:58:00 +00:00
|
|
|
long randomTime;
|
2019-12-28 19:05:20 +00:00
|
|
|
|
|
|
|
void setup() {
|
|
|
|
pinMode(L, OUTPUT);
|
|
|
|
pinMode(I, OUTPUT);
|
|
|
|
pinMode(N, OUTPUT);
|
|
|
|
pinMode(K, OUTPUT);
|
|
|
|
}
|
|
|
|
|
|
|
|
void loop() {
|
2019-12-29 17:58:00 +00:00
|
|
|
MiamiMidnight();
|
2019-12-29 17:54:11 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void singleOn(int delayTime) {
|
2019-12-28 19:05:20 +00:00
|
|
|
digitalWrite(L, HIGH);
|
2019-12-29 17:54:11 +00:00
|
|
|
delay(delayTime);
|
2019-12-28 19:05:20 +00:00
|
|
|
digitalWrite(L, LOW);
|
|
|
|
digitalWrite(I, HIGH);
|
2019-12-29 17:54:11 +00:00
|
|
|
delay(delayTime);
|
2019-12-28 19:05:20 +00:00
|
|
|
digitalWrite(I, LOW);
|
|
|
|
digitalWrite(N, HIGH);
|
2019-12-29 17:54:11 +00:00
|
|
|
delay(delayTime);
|
2019-12-28 19:05:20 +00:00
|
|
|
digitalWrite(N, LOW);
|
|
|
|
digitalWrite(K, HIGH);
|
2019-12-29 17:54:11 +00:00
|
|
|
delay(delayTime);
|
2019-12-29 17:58:00 +00:00
|
|
|
digitalWrite(L, HIGH);
|
|
|
|
digitalWrite(I, HIGH);
|
|
|
|
digitalWrite(N, HIGH);
|
|
|
|
digitalWrite(K, HIGH);
|
|
|
|
}
|
|
|
|
|
|
|
|
void MiamiMidnight() {
|
|
|
|
randomTime = random(1000, 10000);
|
|
|
|
delay(randomTime);
|
|
|
|
digitalWrite(K, LOW);
|
|
|
|
delay(200);
|
|
|
|
digitalWrite(K, HIGH);
|
|
|
|
delay(400);
|
|
|
|
digitalWrite(I, LOW);
|
|
|
|
delay(200);
|
|
|
|
digitalWrite(I, HIGH);
|
|
|
|
delay(300);
|
2019-12-28 19:05:20 +00:00
|
|
|
digitalWrite(K, LOW);
|
2019-12-29 17:58:00 +00:00
|
|
|
delay(900);
|
2019-12-28 19:05:20 +00:00
|
|
|
}
|