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.
Dependencies: mbed
Diff: main.cpp
- Revision:
- 0:f682dcf80f00
- Child:
- 1:623f51ea713b
diff -r 000000000000 -r f682dcf80f00 main.cpp
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp Mon Feb 23 11:20:37 2015 +0000
@@ -0,0 +1,15 @@
+#include "mbed.h"
+//Simple program allowing user to send messages from mbed COM out through UART to another UART COM.
+//Andrea Corrado
+Serial pc(USBTX, USBRX); // tx, rx
+Serial uart (PTC17, PTC16);
+
+
+int main()
+{
+ while(1) {
+ if (pc.readable()) {
+ uart.putc(pc.getc());
+ }
+ }
+}