Maskieren der 8 LEDs

Dependencies:   mbed

Revision:
0:4580f98ab3e1
diff -r 000000000000 -r 4580f98ab3e1 main.cpp
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Mon Jan 11 16:00:05 2016 +0000
@@ -0,0 +1,14 @@
+#include "mbed.h"
+
+#define LED_MASK 0x000030DB
+
+PortOut ledport(Port1, LED_MASK);
+
+int main() {
+    while(1) {
+        ledport = LED_MASK;
+        wait(0.2);
+        ledport = 0;
+        wait(0.2);
+    }
+}