Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- * This is the main emictest program file.
- */
- #include "simpletools.h" // Include simpletools header
- #include "fdserial.h"
- #include "simpletext.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);
- fdserial_txChar(Emic2, '\n');
- // wait for emic2 to be ready
- while (fdserial_rxCheck(Emic2) != ':');
- dprint(Emic2, "sHello World!\n");
- // wait for emic2 to be done with above line
- while (fdserial_rxCheck(Emic2) != ':');
- dprint(Emic2, "sSecond Line\n");
- // wait for emic2 to be done with above line
- while (fdserial_rxCheck(Emic2) != ':');
- fdserial_close(Emic2);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement