Echo back characters you type based in https://mbed.org/handbook/SerialPC example

Dependencies:   mbed

main.cpp

Committer:
felipeM
Date:
2013-10-05
Revision:
0:806d4eb73e1e

File content as of revision 0:806d4eb73e1e:

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