diff --git a/clockGenerator/clockGenerator.ino b/clockGenerator/clockGenerator.ino new file mode 100644 index 0000000..6bd31c1 --- /dev/null +++ b/clockGenerator/clockGenerator.ino @@ -0,0 +1,17 @@ +const int OUT = LED_BUILTIN; // Ausgangs pin +const int TIME_ON = 5000; //länge des Pulses +const int TIME_OFF = 10000; //zeit zwischen den Pulsen in MS + + +void setup() { + // put your setup code here, to run once: + pinMode(OUT, OUTPUT); +} + +void loop() { + // put your main code here, to run repeatedly: + digitalWrite(OUT, HIGH); + delay(TIME_ON); + digitalWrite(OUT, LOW); + delay(TIME_OFF); +}