Nucleo blink led Example

Dependencies:   mbed

Files at this revision

API Documentation at this revision

Comitter:
anoney180133
Date:
Fri Dec 11 14:06:57 2015 +0000
Commit message:
1;

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
mbed.bld Show annotated file Show diff for this revision Revisions of this file
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
+    }
+}
diff -r 000000000000 -r 71b9cf873af6 mbed.bld
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Fri Dec 11 14:06:57 2015 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/mbed_official/code/mbed/builds/34e6b704fe68
\ No newline at end of file