david santiago buendia rincon / Mbed 2 deprecated songs

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)
 {}
    
}