diff --git a/Blink/Blink.ino b/Blink/Blink.ino index aea4b96..6494c6b 100644 --- a/Blink/Blink.ino +++ b/Blink/Blink.ino @@ -74,3 +74,165 @@ void klinik() { digitalWrite(K, LOW); delay(1000); } + +void fromLeft() { + digitalWrite(L, HIGH); + delay(500); + digitalWrite(I, HIGH); + delay(100); + digitalWrite(L, LOW); + delay(400); + digitalWrite(N, HIGH); + delay(100); + digitalWrite(I, LOW); + delay(400); + digitalWrite(K, HIGH); + delay(100); + digitalWrite(N, LOW); + delay(900); + + digitalWrite(L, HIGH); + delay(500); + digitalWrite(I, HIGH); + delay(100); + digitalWrite(L, LOW); + delay(400); + digitalWrite(N, HIGH); + delay(100); + digitalWrite(I, LOW); + delay(900); + + digitalWrite(L, HIGH); + delay(500); + digitalWrite(I, HIGH); + delay(100); + digitalWrite(L, LOW); + delay(900); + + digitalWrite(L, HIGH); + delay(3000); +} + +void fromRight() { + digitalWrite(K, HIGH); + delay(500); + digitalWrite(N, HIGH); + delay(100); + digitalWrite(K, LOW); + delay(400); + digitalWrite(I, HIGH); + delay(100); + digitalWrite(N, LOW); + delay(400); + digitalWrite(L, HIGH); + delay(100); + digitalWrite(I, LOW); + delay(900); + + digitalWrite(K, HIGH); + delay(500); + digitalWrite(N, HIGH); + delay(100); + digitalWrite(K, LOW); + delay(400); + digitalWrite(I, HIGH); + delay(100); + digitalWrite(N, LOW); + delay(900); + + digitalWrite(K, HIGH); + delay(500); + digitalWrite(N, HIGH); + delay(100); + digitalWrite(K, LOW); + delay(900); + + digitalWrite(K, HIGH); + delay(3000); +} + +void toLeft() { + digitalWrite(L, HIGH); + digitalWrite(I, HIGH); + digitalWrite(N, HIGH); + digitalWrite(K, HIGH); + + digitalWrite(L, LOW); + delay(1000); + + digitalWrite(L, HIGH); + delay(100); + digitalWrite(I, LOW); + delay(400); + digitalWrite(L, LOW); + delay(1000); + + digitalWrite(I, HIGH); + delay(100); + digitalWrite(N, LOW); + delay(400); + digitalWrite(L, HIGH); + delay(100); + digitalWrite(I, LOW); + delay(400); + digitalWrite(L, LOW); + delay(1000); + + digitalWrite(N, HIGH); + delay(100); + digitalWrite(K, LOW); + delay(400); + digitalWrite(I, HIGH); + delay(100); + digitalWrite(N, LOW); + delay(400); + digitalWrite(L, HIGH); + delay(100); + digitalWrite(I, LOW); + delay(400); + digitalWrite(L, LOW); + delay(3000); +} + +void toRight() { + digitalWrite(L, HIGH); + digitalWrite(I, HIGH); + digitalWrite(N, HIGH); + digitalWrite(K, HIGH); + + digitalWrite(K, LOW); + delay(1000); + + digitalWrite(K, HIGH); + delay(100); + digitalWrite(N, LOW); + delay(400); + digitalWrite(K, LOW); + delay(1000); + + digitalWrite(N, HIGH); + delay(100); + digitalWrite(I, LOW); + delay(400); + digitalWrite(K, HIGH); + delay(100); + digitalWrite(N, LOW); + delay(400); + digitalWrite(K, LOW); + delay(1000); + + digitalWrite(I, HIGH); + delay(100); + digitalWrite(L, LOW); + delay(400); + digitalWrite(N, HIGH); + delay(100); + digitalWrite(I, LOW); + delay(400); + digitalWrite(K, HIGH); + delay(100); + digitalWrite(N, LOW); + delay(400); + digitalWrite(K, LOW); + delay(3000); +}