A simple program to make flashing the blue Led on the board

Files at this revision

API Documentation at this revision

Comitter:
madridtelecom
Date:
Fri May 03 20:55:09 2013 +0000
Commit message:
A simple program to make flashing the blue Led on the 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
diff -r 000000000000 -r 086f27d7c7a0 main.cpp
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Fri May 03 20:55:09 2013 +0000
@@ -0,0 +1,15 @@
+/*A simple program to make flashing the blue Led on the board*/
+
+#include "mbed.h"
+ 
+DigitalOut BlueLed(PTB18);  //LED_BLUE is conected to pin 18 port B;
+ 
+int main() {
+    while(1) {
+        BlueLed.write(1);
+        wait(0.2);
+        BlueLed.write(0);
+        wait(0.2);
+       }
+   }
+}
diff -r 000000000000 -r 086f27d7c7a0 mbed.bld
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Fri May 03 20:55:09 2013 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/mbed_official/code/mbed/builds/7e6c9f46b3bd
\ No newline at end of file