From 2f9ae0b67b56ec80c87d71c78b6edce3e8482115 Mon Sep 17 00:00:00 2001 From: Benedikt Elssmann Date: Sun, 29 Dec 2019 18:58:00 +0100 Subject: [PATCH 1/2] alpha test version --- Blink/Blink.ino | 23 +++++++++++++++++++++-- 1 file changed, 21 insertions(+), 2 deletions(-) diff --git a/Blink/Blink.ino b/Blink/Blink.ino index 643f6c9..74393f3 100644 --- a/Blink/Blink.ino +++ b/Blink/Blink.ino @@ -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); + 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); + digitalWrite(K, LOW); + delay(900); } -- 2.45.2 From 92d6783689338e1a31c9155a7bf4e49e271d4842 Mon Sep 17 00:00:00 2001 From: Georg Krause Date: Sun, 29 Dec 2019 19:11:53 +0100 Subject: [PATCH 2/2] Turn letter on at startup --- Blink/Blink.ino | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Blink/Blink.ino b/Blink/Blink.ino index 74393f3..1c57315 100644 --- a/Blink/Blink.ino +++ b/Blink/Blink.ino @@ -27,13 +27,13 @@ void singleOn(int delayTime) { digitalWrite(N, LOW); digitalWrite(K, HIGH); delay(delayTime); +} + +void MiamiMidnight() { digitalWrite(L, HIGH); digitalWrite(I, HIGH); digitalWrite(N, HIGH); digitalWrite(K, HIGH); -} - -void MiamiMidnight() { randomTime = random(1000, 10000); delay(randomTime); digitalWrite(K, LOW); -- 2.45.2