Advertisement
RuiViana

Som

Jan 20th, 2016
245
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 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. int flag = 0;
  8. Wtv020sd16p wtv020sd16p(resetPin,clockPin,dataPin,busyPin);
  9.  
  10. void setup() {
  11. Serial.begin(9600);
  12. wtv020sd16p.reset();
  13.  
  14. }
  15.  
  16. void loop() {
  17. while (flag == 0)
  18. {
  19. wtv020sd16p.asyncPlayVoice(0);
  20. delay(3000);
  21. flag = 1;
  22. Serial.println("1 vez");
  23. }
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement