-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.cpp
58 lines (51 loc) · 1.03 KB
/
main.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
#include <Arduino.h>
const int timing = 50;
void setup() {
pinMode(LED_BUILTIN, OUTPUT);
Serial.begin(9600);
while (!Serial) {
; // wait for serial port to connect. Needed for native USB.
}
}
void kurz() {
Serial.print("kurz ");
digitalWrite(LED_BUILTIN, HIGH);
delay(timing);
digitalWrite(LED_BUILTIN, LOW);
delay(timing);
}
void lang() {
Serial.print("lang ");
digitalWrite(LED_BUILTIN, HIGH);
delay(3*timing);
digitalWrite(LED_BUILTIN, LOW);
delay(3*timing);
}
void pause() {
Serial.print(" ");
digitalWrite(LED_BUILTIN, LOW);
delay(5*timing);
}
void wort_pause() {
pause();
pause();
pause();
Serial.println(" ");
}
void satz_pause() {
wort_pause();
wort_pause();
}
void loop() {
kurz(); kurz(); kurz(); kurz(); pause();
lang(); kurz(); pause();
kurz(); lang(); kurz(); kurz(); pause();
kurz(); lang(); kurz(); kurz(); pause();
lang(); lang(); lang();
wort_pause();
kurz(); lang(); kurz(); pause();
kurz(); pause();
kurz(); lang(); kurz(); pause();
kurz();
satz_pause();
}