Reproductor de archivos wav

Dependencies:   SDFileSystem mbed-src mbed

Fork of SDFileSystem_HelloWorld by mbed official

main.cpp

Committer:
EduardoVitela
Date:
2015-06-12
Revision:
1:6f7dafed256b
Parent:
0:bdbd3d6fc5d5

File content as of revision 1:6f7dafed256b:

#include "mbed.h"
#include "wavplayer.h"
#include "SDFileSystem.h"

SDFileSystem sd(PTD6, PTD7, PTD5, PTC8, "sd"); // MOSI, MISO, SCK, CS

int main()
{
    WavPlayer myWavPlayer;
    myWavPlayer.play_wave("/sd/micro/guns.wav"); //  8 bit sample size
    myWavPlayer.play_wave("/sd/micro/cain.wav");
    myWavPlayer.play_wave("/sd/micro/link.wav");
    myWavPlayer.play_wave("/sd/micro/rock.wav");
    myWavPlayer.play_wave("/sd/micro/dune.wav");
}