Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Diff: main.cpp
- Revision:
- 0:da0f60df536b
- Child:
- 1:958d1da2df76
diff -r 000000000000 -r da0f60df536b main.cpp
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp Mon Nov 24 07:05:30 2014 +0000
@@ -0,0 +1,15 @@
+#include "mbed.h"
+
+Serial pc(SERIAL_TX, SERIAL_RX);
+DigitalOut myled(LED2);
+
+int main() {
+ pc.baud(115200);
+ pc.printf("Hello World !\n");
+ int i=0;
+ while(1) {
+ pc.printf("This program runs since %d seconds.\n", i++);
+ wait(1);
+ myled = !myled;
+ }
+}
\ No newline at end of file