Basic blinking led

Dependencies:   mbed

Revision:
0:1b577fea32e8
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Mon Sep 08 17:31:54 2014 +0000
@@ -0,0 +1,14 @@
+#include "mbed.h"
+
+int main()
+{
+    DigitalOut led(LED1, 0); // Create the LED object and setup OFF
+    
+    while(1)
+    {
+        led = 1;             // Turn LED ON
+        wait(1);             // Wait 1s
+        led = 0;             // Turn LED OFF
+        wait(1);             // Wait 1s
+    }
+}