Eduardo Vitela / Mbed 2 deprecated RepWAV

Dependencies:   SDFileSystem mbed-src mbed

Fork of SDFileSystem_HelloWorld by mbed official

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers main.cpp Source File

main.cpp

00001 #include "mbed.h"
00002 #include "wavplayer.h"
00003 #include "SDFileSystem.h"
00004 
00005 SDFileSystem sd(PTD6, PTD7, PTD5, PTC8, "sd"); // MOSI, MISO, SCK, CS
00006 
00007 int main()
00008 {
00009     WavPlayer myWavPlayer;
00010     myWavPlayer.play_wave("/sd/micro/guns.wav"); //  8 bit sample size
00011     myWavPlayer.play_wave("/sd/micro/cain.wav");
00012     myWavPlayer.play_wave("/sd/micro/link.wav");
00013     myWavPlayer.play_wave("/sd/micro/rock.wav");
00014     myWavPlayer.play_wave("/sd/micro/dune.wav");
00015 }
00016