Merge branch 'MiamiMidnight' of gcrkrause/bLINK into master
This commit is contained in:
commit
7043b9ad26
1 changed files with 21 additions and 2 deletions
|
@ -2,6 +2,7 @@ const int L = 3;
|
|||
const int I = 5;
|
||||
const int N = 4;
|
||||
const int K = 6;
|
||||
long randomTime;
|
||||
|
||||
void setup() {
|
||||
pinMode(L, OUTPUT);
|
||||
|
@ -11,7 +12,7 @@ void setup() {
|
|||
}
|
||||
|
||||
void loop() {
|
||||
singleOn(500);
|
||||
MiamiMidnight();
|
||||
}
|
||||
|
||||
void singleOn(int delayTime) {
|
||||
|
@ -26,5 +27,23 @@ void singleOn(int delayTime) {
|
|||
digitalWrite(N, LOW);
|
||||
digitalWrite(K, HIGH);
|
||||
delay(delayTime);
|
||||
digitalWrite(K, LOW);
|
||||
}
|
||||
|
||||
void MiamiMidnight() {
|
||||
digitalWrite(L, HIGH);
|
||||
digitalWrite(I, HIGH);
|
||||
digitalWrite(N, HIGH);
|
||||
digitalWrite(K, HIGH);
|
||||
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);
|
||||
digitalWrite(K, LOW);
|
||||
delay(900);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue