Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: SDFileSystem mbed wave_player_dma
Fork of WavePlayer_HelloWorld by
main.cpp
00001 00002 #include "mbed.h" 00003 #include "SDFileSystem.h" 00004 #include "wave_player.h" 00005 00006 00007 SDFileSystem sd(p5, p6, p7, p8, "sd"); //SD card 00008 00009 AnalogOut DACout(p18); 00010 00011 wave_player waver(&DACout); 00012 00013 int main() 00014 { 00015 FILE *wave_file; 00016 printf("\n\n\nHello, wave world!\n"); 00017 wave_file=fopen("/sd/sample.wav","r"); 00018 waver.play(wave_file); 00019 fclose(wave_file); 00020 }
Generated on Thu Jul 21 2022 19:51:01 by
1.7.2
