Stapeln/Entstapenln hinzugefügt
This commit is contained in:
parent
bbe80f8a88
commit
56539689fd
1 changed files with 162 additions and 0 deletions
162
Blink/Blink.ino
162
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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue