felipe manrique
/
FRDM_serial_echo_demo
Echo back characters you type based in https://mbed.org/handbook/SerialPC example
Revision 0:806d4eb73e1e, committed 2013-10-05
- Comitter:
- felipeM
- Date:
- Sat Oct 05 19:10:27 2013 +0000
- Commit message:
- Echoes back to the screen anything you type; taken from :; https://mbed.org/handbook/SerialPC
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
mbed.bld | Show annotated file Show diff for this revision Revisions of this file |
--- /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
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed.bld Sat Oct 05 19:10:27 2013 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/mbed_official/code/mbed/builds/a9913a65894f \ No newline at end of file