Echo keybord input to TerraTerm. ST Nucleo L152RE

Dependencies:   mbed

Fork of L152_blink_led by MXtest_1

main.cpp

Committer:
microXtra
Date:
2015-01-26
Revision:
1:17cbc036ba01
Parent:
0:fd9826e1d40c

File content as of revision 1:17cbc036ba01:

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