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
Revision 4:b90d35afa1e4, committed 2019-11-11
- Comitter:
- marvas
- Date:
- Mon Nov 11 07:13:59 2019 +0000
- Parent:
- 3:ebbd7fcecb8d
- Commit message:
- MP3 calar
Changed in this revision
--- a/SDFileSystem.lib Wed Mar 16 19:59:44 2016 +0000 +++ b/SDFileSystem.lib Mon Nov 11 07:13:59 2019 +0000 @@ -1,1 +1,1 @@ -http://mbed.org/users/mbed_official/code/SDFileSystem/#c8f66dc765d4 +http://mbed.org/users/mbed_official/code/SDFileSystem/#8db0d3b02cec
--- a/main.cpp Wed Mar 16 19:59:44 2016 +0000
+++ b/main.cpp Mon Nov 11 07:13:59 2019 +0000
@@ -3,18 +3,20 @@
#include "SDFileSystem.h"
#include "wave_player.h"
+SDFileSystem sd(PC_12, PC_11, PC_10, PD_2, "sd"); // mosi, miso, sclk, cs(scl)
-SDFileSystem sd(p5, p6, p7, p8, "sd"); //SD card
-
-AnalogOut DACout(p18);
+AnalogOut DACout(PA_4);
+InterruptIn btn(PC_13);
wave_player waver(&DACout);
+
int main()
{
- FILE *wave_file;
- printf("\n\n\nHello, wave world!\n");
- wave_file=fopen("/sd/sample.wav","r");
+
+ FILE *wave_file;
+ wave_file=fopen("/sd/dirilis.wav","r");
waver.play(wave_file);
fclose(wave_file);
+
}
\ No newline at end of file
--- a/mbed.bld Wed Mar 16 19:59:44 2016 +0000 +++ b/mbed.bld Mon Nov 11 07:13:59 2019 +0000 @@ -1,1 +1,1 @@ -http://mbed.org/users/mbed_official/code/mbed/builds/63cdd78b2dc1 \ No newline at end of file +https://os.mbed.com/users/mbed_official/code/mbed/builds/3a7713b1edbc \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/wave_player.lib Mon Nov 11 07:13:59 2019 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/sravet/code/wave_player/#acc3e18e77ad
--- a/wave_player_dma.lib Wed Mar 16 19:59:44 2016 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,1 +0,0 @@ -https://developer.mbed.org/users/ebradley6/code/wave_player_dma/#11a670498598