Advertisement
RuiViana

Untitled

Jan 20th, 2016
290
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. #include <Wtv020sd16p.h>
  2. // Conecxão do pino do WTV 0220 No Arduino
  3. int resetPin = 4; //Pino Reset
  4. int clockPin = 5; //Pino clock
  5. int dataPin = 6; //Pino data (DI)
  6. int busyPin = 7; //Pino busy
  7. byte flag = 0;
  8.  
  9. Wtv020sd16p wtv020sd16p(resetPin,clockPin,dataPin,busyPin);
  10.  
  11. void setup() {
  12. wtv020sd16p.reset();
  13.  
  14. }
  15.  
  16. void loop() {
  17. if (flag == 0)
  18. wtv020sd16p.asyncPlayVoice(0);
  19. delay(3000);
  20. flag = 1;
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement