Seiya Ono
/
serial_test
serial test code for custom boards
Diff: main.cpp
- Revision:
- 0:070feac238b3
diff -r 000000000000 -r 070feac238b3 main.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Fri Aug 10 17:01:54 2018 +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