Adafruit Audio FX Sound Board - Need Help!

Hello,

Hopefully someone out there is familiar with the Adafruit Audio FX Sound Board. I am trying to figure out how to send serial commands to it in order to play the audio files on the board.

I went through the tutorials and I am able to get the demo program working where I can send commands from the terminal monitor - that's working fine.

I am just not 'getting' how to send those commands from the code itself.

From the tutorial - it instructs me to send #NN\n (# symbol, then the number of the track, and end with a new line).

I am not clear on how to send this to the board?

To play track 10, would it be:

Serial.write("#10\n")

I am not clear on what I am doing wrong.

Anyhow - I apologize for being a newbie and not taking the time I should to solve this problem on my own, however I do appreciate any insight into this.

Thanks,

cpbiomed

I don't know this device but I've just had a quick look.
When you load the librarary, you should get an example sketch. It is this.

You can 'reverse engineer' it to get examples of the commands you require. For example:

To play track 10, would it be (lifted out of the example):

 uint8_t n = 10 ;  // track 10
 Serial.print("\nPlaying track #"); Serial.println(n);
 if (! sfx.playTrack((uint8_t)n) ) {
        Serial.println("Failed to play track?");
 }

So start by hacking a copy of the example sketch.