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:133aa2caa778
diff -r 000000000000 -r 133aa2caa778 main.cpp
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp Sat Feb 23 11:48:11 2019 +0000
@@ -0,0 +1,18 @@
+#include "mbed.h"
+
+//------------------------------------
+// Terminal configuration
+// 9600 bauds, 8-bit data, no parity
+//------------------------------------
+
+Serial pc(SERIAL_TX, SERIAL_RX);
+
+int main()
+{
+ //pc.baudrate(115200);
+ while(1) {
+ if (pc.readable()){
+ pc.putc(pc.getc());
+ }
+ }
+}