Nucleo blink led Example

Dependencies:   mbed

Revision:
0:71b9cf873af6
diff -r 000000000000 -r 71b9cf873af6 main.cpp
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Fri Dec 11 14:06:57 2015 +0000
@@ -0,0 +1,17 @@
+#include "mbed.h"
+
+DigitalOut Nucleo_GREEN_LED(LED1);
+DigitalOut LED(PA_8,0);
+
+int main() 
+{
+    while(1) 
+    {
+        Nucleo_GREEN_LED = 1; // LED is ON
+        LED.write(1);
+        wait(0.5); // 500 ms
+        Nucleo_GREEN_LED = 0; // LED is OFF
+        LED.write(0);
+        wait(0.5); // 500 ms
+    }
+}