New Homepage Forums Special Shields Music Player Issues

This topic contains 1 reply, has 2 voices, and was last updated by avatar Amr 1 year, 6 months ago. This post has been viewed 192 times

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #132381
    avatarcraftybuilder
    Participant

    Hey, ive been trying to get this to play but its not working:

    This plays music just fine:

    but I need it to pause when an imput is detected on pin 5.
    If you could help me with that that would be great!

    #132440
    avatarAmr
    Keymaster

    Hi,

    It doesn’t work because you are using the Serial.begin() and Serial.print() functions at the same time with 1Sheeld which confuses the Arduino as 1Sheeld uses the same serial line Arduino uses for Serial functions. This is ensured with your second code that worked out when you removed all Serial functions.

    The good news is you can use the Terminal Shield to print your debugging statements just like the Serial.print() functions.

    So, just use this code which is yours, BUT with Serial functions replaced with Terminal functions and don’t forget to select the Terminal Shield beside the Music Player Shield:

    Give it a try and let me know if you got it working 🙂

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.