Waveplayer
Dependencies: SDFileSystem mbed wave_player
Fork of WavePlayer_HelloWorld by
main.cpp
- Committer:
- lzzcd001
- Date:
- 2015-02-18
- Revision:
- 2:244f8a2bbb26
- Parent:
- 1:5b8e223e983d
File content as of revision 2:244f8a2bbb26:
#include "mbed.h" #include "SDFileSystem.h" #include "wave_player.h" SDFileSystem sd(p5, p6, p7, p8, "sd"); //SD card AnalogOut DACout(p18); wave_player waver(&DACout); int main() { FILE *wave_file; printf("\n\n\nHello, wave world!\n"); wave_file=fopen("/sd/test.wav","r"); waver.play(wave_file); fclose(wave_file); }