A simple library for decoding MP3 files with the VS1053 CoDec chip. The initial library was written by Kaoru Onoe. The library is patched to work with some "LC Technology" VS1053 board that have some IC pins disconnected. Because of that problem, there was no sound out of that boards. Now, these board work ok !

Dependents:   W7500_and_VS1053_MP3_decoder VS1053_MP3_decoder_WIZwiki-W7500 VS1053Player Scat

Fork of VS1053 by Kaoru Onoe

Revision:
1:00c19f771676
Parent:
0:708868399033
Child:
2:47ba7e2259cd
--- a/VS1053.cpp	Fri Nov 08 10:41:54 2013 +0000
+++ b/VS1053.cpp	Fri Nov 08 11:01:00 2013 +0000
@@ -1,4 +1,4 @@
-// ==================================================== Nov 04 2013, kayeks ==
+// ==================================================== Nov 08 2013, kayeks ==
 // VS1053.cpp
 // ===========================================================================
 // Just a simple library for VLSI's mp3/midi codec chip
@@ -54,12 +54,12 @@
     if (!p || !length) return 0;
     while (length) {
         while (!dreq);
-        cs = 0;
+        bsync = 0;
         for (uint8_t i = 0; i < 32 && length--; i++) {
             spi.write(*p++);
             sizeSent++;
         }
-        cs = 1;
+        bsync = 1;
     }
     return sizeSent;
 }
@@ -105,11 +105,11 @@
     length = 2052;
     while (length) {
         while (!dreq);
-        cs = 0;
+        bsync = 0;
         for (uint8_t i = 0; i < 32 && length--; i++) {
             spi.write(endFillByte);
         }
-        cs = 1;
+        bsync = 1;
     }
     
     // Check if both HDAT0 and HDAT1 are cleared