serial test code for custom boards

Dependencies:   MODSERIAL mbed

main.cpp

Committer:
seiya1225
Date:
8 months ago
Revision:
0:070feac238b3

File content as of revision 0:070feac238b3:

#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());
    }
}