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:a97acec6e904
- Child:
- 1:792cb2614ee9
- Child:
- 3:efea9a991d8d
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp Wed Oct 30 07:18:54 2019 +0000
@@ -0,0 +1,19 @@
+#include "mbed.h"
+
+#define PC_BAUD 115200
+
+Serial pc(PA_10, PA_9); //TX, RX
+
+DigitalOut myled(LED1);
+
+int main()
+{
+ int i = 1;
+ pc.printf("Hello World !\n");
+ pc.baud(PC_BAUD);
+ while(1) {
+ wait(1);
+ pc.printf("This program runs since %d seconds.\n", i++);
+ myled = !myled;
+ }
+}