Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <Wtv020sd16p.h>
- // Conecxão do pino do WTV 0220 No Arduino
- int resetPin = 4; //Pino Reset
- int clockPin = 5; //Pino clock
- int dataPin = 6; //Pino data (DI)
- int busyPin = 7; //Pino busy
- int flag = 0;
- Wtv020sd16p wtv020sd16p(resetPin,clockPin,dataPin,busyPin);
- void SaiSom()
- {
- Serial.begin(9600);
- wtv020sd16p.asyncPlayVoice(0);
- //delay(3000);
- }
- void setup() {
- wtv020sd16p.reset();
- }
- void loop() {
- if (flag <1 )
- SaiSom();
- flag++;
- if (flag == 5)
- Serial.println("5 vezes");
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement