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.
main.cpp
00001 //EasyVR Bridge Program to connect to PC using mbed 00002 #include "mbed.h" 00003 00004 Serial pc(USBTX, USBRX); // tx, rx 00005 Serial device(p13, p14); // tx, rx 00006 00007 int main() { 00008 while(1) { 00009 if(pc.readable()) { 00010 device.putc(pc.getc()); 00011 } 00012 if(device.readable()) { 00013 pc.putc(device.getc()); 00014 } 00015 } 00016 } 00017 00018 00019
Generated on Fri Jul 15 2022 00:46:25 by 1.7.2