initial version

Dependencies:   mbed-dev

This highly complex and confidential code has been published to test mbed-cli export functions

Files at this revision

API Documentation at this revision

Comitter:
abouillot
Date:
Fri Jan 13 19:52:46 2017 +0000
Commit message:
Initial version of test program for export;

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
mbed-dev.lib Show annotated file Show diff for this revision Revisions of this file
diff -r 000000000000 -r 534614616cc2 main.cpp
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Fri Jan 13 19:52:46 2017 +0000
@@ -0,0 +1,21 @@
+#include "mbed.h"
+
+//------------------------------------
+// Hyperterminal configuration
+// 9600 bauds, 8-bit data, no parity
+//------------------------------------
+
+Serial pc(SERIAL_TX, SERIAL_RX);
+
+DigitalOut myled(LED1);
+
+int main()
+{
+    int i = 1;
+    pc.printf("Hello World !\n");
+    while(1) {
+        wait(1);
+        pc.printf("This program runs since %d seconds.\n", i++);
+        myled = !myled;
+    }
+}
diff -r 000000000000 -r 534614616cc2 mbed-dev.lib
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed-dev.lib	Fri Jan 13 19:52:46 2017 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/mbed_official/code/mbed-dev/#88546b34ff1c