Guest User

Untitled

a guest
Nov 2nd, 2013
124
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.63 KB | None | 0 0
  1. #include "simpletools.h" // Include simpletools header
  2. #include "fdserial.h"
  3.  
  4. #define emic_tx 6
  5. #define emic_rx 7
  6.  
  7. int main() // main function
  8. {
  9. pause(1000);
  10. fdserial *Emic2 = fdserial_open(emic_rx, emic_tx, 0, 9600);
  11. print("Waiting for Emic2...\n"));
  12.  
  13. while(1)
  14. {
  15. while(fdserial_rxCheck(emic_rx, emic_tx, 0, 9600)!= ":")
  16. {
  17. print("\n");
  18. }
  19.  
  20. print("Ready!\n");
  21. fdserial.rxFlush(emic_rx, emic_tx, 0, 9600);
  22. print("Speaking some text...\n");
  23. dprint(Emic2, "s");
  24. dprint(Emic2, "Test Test!\n");
  25. print("Done!\n"));
  26. }
  27. }
Advertisement
Add Comment
Please, Sign In to add comment