Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Diff: main.cpp
- Revision:
- 0:47be8595eabc
- Child:
- 1:5bb0b616cdaa
diff -r 000000000000 -r 47be8595eabc main.cpp
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Mon Jan 31 16:58:37 2022 +0000
@@ -0,0 +1,20 @@
+/* mbed BuschA, 60_LED_SOS  */ 
+#include "mbed.h"
+#include "UP_SOS.h"
+//Initialisiere Ausgangspin und Variable
+DigitalIn CableSwitch(D2); //PullUp auf Board, PA_10
+
+int main()
+{
+
+    while (true) 
+    {
+        if (CableSwitch == false)
+        {
+            UP_SOS_kurz();                  //Funktionsaufruf...
+            UP_SOS_lang();
+            UP_SOS_kurz();
+            thread_sleep_for(2000); //Sleep = Warten...
+        }
+    }
+}
\ No newline at end of file