changes made for course project
Dependencies: SDFileSystem mbed wave_player
Fork of WavePlayer_HelloWorld by
Revision 2:f27cbf739ab0, committed 2016-03-15
- Comitter:
- jlogreira3
- Date:
- Tue Mar 15 18:17:47 2016 +0000
- Parent:
- 1:5b8e223e983d
- Commit message:
- ECE 4180 Embedded System Mini Project
Changed in this revision
main.cpp | Show diff for this revision Revisions of this file |
diff -r 5b8e223e983d -r f27cbf739ab0 main.cpp --- a/main.cpp Thu Jan 24 02:59:05 2013 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,20 +0,0 @@ - -#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/sample.wav","r"); - waver.play(wave_file); - fclose(wave_file); -} \ No newline at end of file