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
- Committer:
- chessdsbr
- Date:
- 2020-05-20
- Revision:
- 2:fca0a4b96e1b
- Parent:
- 0:bdbd3d6fc5d5
File content as of revision 2:fca0a4b96e1b:
#include "mbed.h"
#include "SDFileSystem.h"
#include <wave_player.h>
DigitalOut Led(LED1);
AnalogOut DAcout (PTE30);
SDFileSystem sd(D11, D12, D13, D10, "sd"); // the pinout on the mbed Cool Components workshop board
wave_player waver(&DAcout);
int main() {
FILE *wave_file;
wait(0.3);
wave_file=fopen("/sd/gano.wav","r");
waver.play(wave_file);
fclose(wave_file);
while(1)
{}
}