Hotboards MX
/
Bridge
SERIAL BRIDGE
main.cpp
- Committer:
- Hotboards
- Date:
- 2016-06-15
- Revision:
- 0:0669f963d466
File content as of revision 0:0669f963d466:
#include "mbed.h" Serial device(PC_10,PC_11); Serial pc(USBTX,USBRX); int main() { device.baud(9600); pc.baud(9600); while(1) { if(device.readable()) { pc.putc(device.getc()); } if(pc.readable()) { device.putc(pc.getc()); } } }