david santiago buendia rincon / Mbed 2 deprecated songs

Dependencies:   mbed wave_player SDFileSystem

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers main.cpp Source File

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 }