Echo back characters you type based in https://mbed.org/handbook/SerialPC example
Fork of FRDM_serial_echo_demo by
Diff: main.cpp
- Revision:
- 0:806d4eb73e1e
- Child:
- 1:675b841fe7dc
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Sat Oct 05 19:10:27 2013 +0000 @@ -0,0 +1,10 @@ +#include "mbed.h" + +Serial pc(USBTX, USBRX); + +int main() { + pc.printf("Echoes back to the screen anything you type\n"); + while(1) { + pc.putc(pc.getc()); + } +} \ No newline at end of file