Toggle LED on Nucleo Board

Dependencies:   mbed

Files at this revision

API Documentation at this revision

Comitter:
sjallouli
Date:
Tue Dec 29 19:21:13 2015 +0000
Commit message:
Toggle LED on Nucleo board

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
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Tue Dec 29 19:21:13 2015 +0000
@@ -0,0 +1,12 @@
+#include "mbed.h"
+
+DigitalOut myled(LED1);
+
+int main() 
+{
+  while(1) 
+  {
+    myled = !myled;
+    wait(1);
+  }
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Tue Dec 29 19:21:13 2015 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/mbed_official/code/mbed/builds/7cff1c4259d7
\ No newline at end of file