Home Forums Sparkfun MP3 Shield Library Support Forum compile error: SetVolume Reply To: compile error: SetVolume

#2611

I have posted GISTHUB with corrected code that compiles at https://gist.github.com/mpflaga/5522030#file-froggy14_mp3_pir-ino

You were basically correct. The pasting of code into wordpress’s web page altered several characters, creating some additional errors.

I believe there were some invisible(or altered) characters in the setVolume line that was making the call not match the signature of the available member functions, resulting in your error.

I simply deleted the whole line and re-typed it. Where a cut and paste carried the problem.

Additionally you needed to instance the “SdFat sd;” object.