Oscar de Jesus Vasquez
/
Emic2_TTS
Emic 2 TTS example code for spanish .
Revision 0:9c662142ded4, committed 2015-02-20
- Comitter:
- oscarvzfz
- Date:
- Fri Feb 20 15:16:38 2015 +0000
- Commit message:
- Emic 2 tts example;
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
mbed.bld | Show annotated file Show diff for this revision Revisions of this file |
diff -r 000000000000 -r 9c662142ded4 main.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Fri Feb 20 15:16:38 2015 +0000 @@ -0,0 +1,33 @@ +#include "mbed.h" +char recv; +Serial tts(p13,p14); + +void tts_confirm() +{ + while(1) +{ + if (tts.readable()) + { + recv= tts.getc(); + if(recv!=':'){wait(.01); + } + else{break;} + } +} +} + +int main() +{ +tts.printf("\n"); +tts_confirm(); +tts.printf("L2\n"); +tts_confirm(); +tts.printf("W180\n"); +tts_confirm(); +tts.printf("N6\n"); +tts_confirm(); +tts.printf("S"); +tts.printf("Hola"); +tts.printf("\n"); + +}
diff -r 000000000000 -r 9c662142ded4 mbed.bld --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed.bld Fri Feb 20 15:16:38 2015 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/mbed_official/code/mbed/builds/9ad691361fac \ No newline at end of file