A simple program to Toggle the 2 OnBoard LEDs.

Revision:
0:889636b54b07
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Tue May 15 14:43:30 2018 +0000
@@ -0,0 +1,19 @@
+#include "mbed.h"
+
+DigitalOut led2(LED2);
+DigitalOut led1(LED1);
+
+// main() runs in its own thread in the OS
+int main() 
+{
+    led1 = 1;
+    led2 = 0;
+    
+    while (true) 
+    {
+        led2 = !led2;
+        led1 = !led1;
+        wait(0.5);
+    }
+}
+