Dependencies:   TextLCD mbed VS1002_controler SDFileSystem

Files at this revision

API Documentation at this revision

Comitter:
nameless129
Date:
Wed Mar 14 14:09:26 2012 +0000
Commit message:

Changed in this revision

FATFileSystem.lib Show annotated file Show diff for this revision Revisions of this file
SDFileSystem.lib Show annotated file Show diff for this revision Revisions of this file
TextLCD.lib Show annotated file Show diff for this revision Revisions of this file
VS1002_controler.lib Show annotated file Show diff for this revision Revisions of this file
main.cpp Show annotated file Show diff for this revision Revisions of this file
mbed.bld Show annotated file Show diff for this revision Revisions of this file
diff -r 000000000000 -r 1152f41f7f73 FATFileSystem.lib
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/FATFileSystem.lib	Wed Mar 14 14:09:26 2012 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/mbed_unsupported/code/fatfilesystem/
\ No newline at end of file
diff -r 000000000000 -r 1152f41f7f73 SDFileSystem.lib
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/SDFileSystem.lib	Wed Mar 14 14:09:26 2012 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/simon/code/SDFileSystem/#b1ddfc9a9b25
diff -r 000000000000 -r 1152f41f7f73 TextLCD.lib
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/TextLCD.lib	Wed Mar 14 14:09:26 2012 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/simon/code/TextLCD/#44f34c09bd37
diff -r 000000000000 -r 1152f41f7f73 VS1002_controler.lib
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/VS1002_controler.lib	Wed Mar 14 14:09:26 2012 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/nameless129/code/VS1002_controler/#9abce67c084e
diff -r 000000000000 -r 1152f41f7f73 main.cpp
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Wed Mar 14 14:09:26 2012 +0000
@@ -0,0 +1,72 @@
+#include "mbed.h"
+#include "VS1002.h"
+
+/*
+ VS1002 MP3Player
+ 2012/03/14
+ 
+ このプログラムは以下のURLのソースコードを元に作成しています
+ http://mbed.org/cookbook/VS1002-MP3-Decoder
+ 
+接続方法 
+ VS1002      |        mbed
+ ---------------------------------------
+  D2(BSYNC)------------17
+  D3(DREQ)-------------16
+
+  D9(CS)---------------14
+
+  D11(MOSI)------------11
+  D12(MISO)------------12
+  D13(SCK)-------------13
+
+  GND------------------GND(1)
+  5V-------------------VU(39)
+  RESET----------------15
+
+ボリュームはp20の電圧によって制御しますが、Arduino_MP3_Shield_MP3Playerライブラリの
+VS1002.hファイル内の#define FIXED_VOLのコメントを外すことによってp20の電圧に関係なく最大の音量となります
+*/
+
+
+//PinName mmosi, PinName mmiso, PinName ssck, PinName ccs, const char *name,
+//         PinName mosi, PinName miso, PinName sck, PinName cs, PinName rst,
+//         PinName dreq, PinName dcs, PinName vol)
+VS1002 mp3(p5, p6, p7, p8, "sd",
+        p11, p12, p13, p14, p15,
+        p16, p17, p20);     //p14 in BoB non-functional so replace with p18
+
+
+int main ()
+{
+  // make debug port Fast
+   Serial pc(USBTX, USBRX);
+//    pc.baud(9600);
+    pc.baud(115200);
+//  pc.baud(230400);
+    printf("Power ON\r\n"); 
+
+    /*============================================================
+     * MP3 Initialising
+     *==========================================================*/
+#ifndef FS_ONLY    
+    mp3._RST = 1;
+    mp3.cs_high();                                   //chip disabled
+    mp3.sci_initialise();                            //initialise MBED
+    mp3.sci_write(0x00,(SM_SDINEW+SM_STREAM+SM_DIFF));
+    mp3.sci_write(0x03, 0x9800);
+    mp3.sdi_initialise();    
+#endif        
+    /*============================================================
+     * This is the good part
+     *==========================================================*/
+    printf("MP3 init OK\r\n"); 
+    
+    for(int a=1; a<24; a++)
+    {
+        printf("Song#:%d\r\n",a); 
+        mp3.play_song(a);
+        wait(1);
+    }
+    printf("Done.\r\n");
+}
\ No newline at end of file
diff -r 000000000000 -r 1152f41f7f73 mbed.bld
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Wed Mar 14 14:09:26 2012 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/mbed_official/code/mbed/builds/4c0c40fd0593