test

Revision:
0:1a04fda5faa3
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Wed Aug 09 10:02:48 2017 +0000
@@ -0,0 +1,22 @@
+#include "mbed.h"
+
+DigitalOut led1(LED1);
+DigitalOut led2(LED2);
+
+// main() runs in its own thread in the OS
+int main() {
+    while (true) {
+        led1 = 0;
+        led2 = 0;
+        wait(1.0);
+        
+        led1 = 1;
+        led2 = 0;
+        wait(1.0);
+        
+        led1 = 0;
+        led2 = 1;
+        wait(1.0);
+    }
+}
+