A library for the WTV020SD sound breakout board

Dependents:   Nucleo_SoundBoardTest Robot Progetto_finale Progetto_finale_noLCD ... more

Revision:
1:b24351bba700
Parent:
0:03560ce39755
Child:
2:d6b7b90b4387
--- a/soundboard.h	Sun Nov 02 10:45:01 2014 +0000
+++ b/soundboard.h	Sun Nov 02 11:09:12 2014 +0000
@@ -24,30 +24,30 @@
 #include "soundboard.h"
 int main(void)
 {
-    //initialise the soundboard
-    soundboard mySoundBoard(D1, D2, D3, D4);
-    //play track 0
-    mySoundBoard.play(0);
-    //play track 1
-    mySoundBoard.playAsync(1);
-    //set the volume as 3
-    mySoundBoard.setVolume(VOL_3);
-    wait(.5);
-    //set the volume as 7 (max)
-    mySoundBoard.setVolume(VOL_7);
-    wait(.5);
-    //mute the playback, but the playback will continue
-    mySoundBoard.setVolume(mute);
-    wait(.5)
-    //pause playback
-    mySoundBoard.pause();
-    wait(.5);
-    //continue playback
-    mySoundBoard.pause();
-    wait(.5);
-    //reset the soundboard.
-    mySoundBoard.reset();
-    while(1);
+   //initialise the soundboard
+   soundboard mySoundBoard(D1, D2, D3, D4);
+   //play track 0
+   mySoundBoard.play(0);
+   //play track 1
+   mySoundBoard.playAsync(1);
+   //set the volume as 3
+   mySoundBoard.setVolume(VOL_3);
+   wait(.5);
+   //set the volume as 7 (max)
+   mySoundBoard.setVolume(VOL_7);
+   wait(.5);
+   //mute the playback, but the playback will continue
+   mySoundBoard.setVolume(MUTE);
+   wait(.5);
+   //pause playback
+   mySoundBoard.pause();
+   wait(.5);
+   //continue playback
+   mySoundBoard.pause();
+   wait(.5);
+   //reset the soundboard.
+   mySoundBoard.reset();
+   while(1);
 }
 @endcode
 */