testing

Dependencies:   mbed wave_player SDFileSystem

main.cpp

Committer:
hcharan
Date:
2019-06-03
Revision:
0:64725c30b650

File content as of revision 0:64725c30b650:


#include "mbed.h"
#include "SDFileSystem.h"
#include "wave_player.h"


//SDFileSystem sd(PB_5, PB_04, PB_03, PA_15, "sd"); //SD card
SDFileSystem sd(PB_15, PB_14, PB_13, PB_12, "TEST");

AnalogOut DACout(PA_4);

wave_player waver(&DACout);

int main()
{
    FILE *wave_file;
    printf("\n\n\nHello, wave world!\n");
    wave_file=fopen("/TEST/queen.wav","r");
    waver.play(wave_file);
    fclose(wave_file);
}