Adafruit Sound Board Serial Control

For Adafruit customers who seek help with microcontrollers

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
druxka
 
Posts: 4
Joined: Tue Dec 23, 2014 3:49 pm

Adafruit Sound Board Serial Control

Post by druxka »

Hi,

I have just bought an Adafruit Soundboard and would like to control it with an arduino. Nothing too flashy. i just want that when a button is pressed on the arduino, it plays a sound on the FX board. Thing is, I found the example code you uploaded a bit confusing. I don't need any menus. I just want to know what the commands are to send a serial message to play sounds and I couldn't find how that could be done from the example code alone. I would really appreciate your help.

User avatar
adafruit_support_mike
 
Posts: 67454
Joined: Thu Feb 11, 2010 2:51 pm

Re: Adafruit Sound Board Serial Control

Post by adafruit_support_mike »

The part that plays a sound is:

Code: Select all

      if (! sfx.playTrack(n) ) {
        Serial.println("Failed to play track?");
      }

Locked
Please be positive and constructive with your questions and comments.

Return to “Microcontrollers”