-
Notifications
You must be signed in to change notification settings - Fork 16
Description
Hello,
I am new to programing micro-controllers and decided to do a project with audio. I've bought a VS1053 MP3 Shield and have spent at least 8 hours today trying to get it to work. My current problem is that while compiling the example program "demo" I get the following warning:
C:\Users\kastr\Documents\Arduino\libraries\VS1053_for_use_with_SdFat\src\vs1053_SdFat.cpp: In member function 'uint8_t vs1053::vs_init()':
C:\Users\kastr\Documents\Arduino\libraries\VS1053_for_use_with_SdFat\src\vs1053_SdFat.cpp:292:34: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
if(VSLoadUserCode("patches.053")) return 6;
^
I assume this warning is the reason that in the serial monitor I get the error:
Error code: 6 when trying to start MP3 player
Warning: patch file not found, skipping.
It does still print all the given commands, but if i try to play a file by typing a number i get:
Error code: 2 when trying to play track
I am using an Arduino mega. I have routed the wires correctly and changed the CS pin in vs1053_SdFat_config. I have tried everything I found on the internet. I can't think of a reason why the demo program would not compile properly. I have had little luck trying to understand the code behind the library, it's too complex.
If anyone has any insight into my problem, i would greatly appreciate it.