From 228376e2bcc96d93d11d123aeab7aedb5c239bb8 Mon Sep 17 00:00:00 2001 From: Erik Foris Date: Sun, 7 Jan 2024 15:45:51 +0100 Subject: [PATCH] initial Commit --- clockGenerator/clockGenerator.ino | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 clockGenerator/clockGenerator.ino 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); +}