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

Dependencies:   mbed

Fork of FRDM_serial_echo_demo by felipe manrique

main.cpp

Committer:
felipeM
Date:
2013-10-05
Revision:
0:806d4eb73e1e
Child:
1:675b841fe7dc

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