My first Blinky-Program

Dependencies:   mbed

5ABELI Testprogramm

Weiter gehts!

Revision:
0:5629bcae0c89
diff -r 000000000000 -r 5629bcae0c89 main.cpp
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Mon Dec 04 18:24:50 2017 +0000
@@ -0,0 +1,14 @@
+#include "mbed.h"
+
+DigitalOut myled(LED1);
+DigitalOut myled2(LED2, 1);
+
+int main() {
+    while(1) {
+        myled.write(1);
+        myled2 = !myled2;
+        wait(0.5);
+        myled = 0;
+        wait(0.5);
+    }
+}