led test

Dependencies:   mbed

Revision:
0:cc00340e998c
diff -r 000000000000 -r cc00340e998c main.cpp
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Wed May 04 00:21:14 2016 +0000
@@ -0,0 +1,16 @@
+#include "mbed.h"
+
+DigitalOut myled1(LED1);
+DigitalOut myled2(LED2);
+
+int main() {
+    while(1) {
+        myled1 = 1; // LED is ON
+        myled2 = 0;
+        wait(0.2); // 200 ms
+        myled1 = 0;
+        myled2 = 1; // LED is ON
+        myled2 = 0;
+        wait(0.2); // 200 ms
+    }
+}