Serial Bridge program to support using the EasyVR with mbed. It is run when using the PC-based EasyVR GUI tools for voice recognition training and testing.
Diff: main.cpp
- Revision:
- 0:41997ef0ebb8
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Sun May 08 00:00:02 2011 +0000 @@ -0,0 +1,19 @@ +//EasyVR Bridge Program to connect to PC using mbed +#include "mbed.h" + +Serial pc(USBTX, USBRX); // tx, rx +Serial device(p13, p14); // tx, rx + +int main() { + while(1) { + if(pc.readable()) { + device.putc(pc.getc()); + } + if(device.readable()) { + pc.putc(device.getc()); + } + } +} + + +