AUDIO LIB
Fork of VS1053 by
Diff: VS1053.cpp
- 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