Nathan Hutton
/
Terminal_test
main.cpp
- Committer:
- Nathan
- Date:
- 2011-08-19
- Revision:
- 0:e5de0a10affa
File content as of revision 0:e5de0a10affa:
#include "mbed.h" //Very simple program to pass whatever the mbed reads on pins 9 and 10 to the computer //Baud by default is 9600, you can change this easily. Serial pc(USBTX, USBRX); Serial WIFI(p9,p10); int main() { pc.printf("\x1B[2J"); pc.printf("\x1B[H"); pc.printf("Simple Termial!\r\n"); while (1) { while(pc.readable())WIFI.putc(pc.getc()); while(WIFI.readable())pc.putc(WIFI.getc()); }}