Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "simpletools.h" // Include simpletools header
- #include "fdserial.h"
- #define emic_tx 6
- #define emic_rx 7
- int main() // main function
- {
- pause(1000);
- fdserial *Emic2 = fdserial_open(emic_rx, emic_tx, 0, 9600);
- print("Waiting for Emic2...\n"));
- while(1)
- {
- while(fdserial_rxCheck(emic_rx, emic_tx, 0, 9600)!= ":")
- {
- print("\n");
- }
- print("Ready!\n");
- fdserial.rxFlush(emic_rx, emic_tx, 0, 9600);
- print("Speaking some text...\n");
- dprint(Emic2, "s");
- dprint(Emic2, "Test Test!\n");
- print("Done!\n"));
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment