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: mbed wave_player SDFileSystem
main.cpp
00001 #include "mbed.h" 00002 #include "SDFileSystem.h" 00003 #include <wave_player.h> 00004 DigitalOut Led(LED1); 00005 AnalogOut DAcout (PTE30); 00006 SDFileSystem sd(D11, D12, D13, D10, "sd"); // the pinout on the mbed Cool Components workshop board 00007 wave_player waver(&DAcout); 00008 int main() { 00009 FILE *wave_file; 00010 wait(0.3); 00011 wave_file=fopen("/sd/gano.wav","r"); 00012 waver.play(wave_file); 00013 fclose(wave_file); 00014 while(1) 00015 {} 00016 00017 }
Generated on Fri Aug 5 2022 03:37:50 by
1.7.2