Programming Mega 2560 to communicate with Adafruit Soundboard

HELP! I am new to Adafruit sound boards and UART/ Serial communicationa and I do not get it! Haha. No, but seriously, I could use some help and much appreciated for whatever help I can get. End goal: I have 4 sounds and 4 buttons, 1 sound to each button. I need to program the Mega to tell the soundboard to play the specific sound for the specific button and be able to override another button press if needed. Say I press button one to play sound 1 and before sound 1 is done, I need to press button 2 to activate button 2. I have easily hard wired the sound board the the buttons and know that the sound will play when the button is pushed in this method, but I am unable to "override" a sound, rather I have to wait for the previous sound file to be completed before I can activate another sound. I have been told that I can do this through TX and RX ports with UART/ Serial, but I just do not get it! I have the RX and TX ports defined in my code and I have the wiring set up, I am just struggling to understand how to write the code of "when button 1 is pressed, play sound "XX" from soundboard" and how to incorporate the TX and RX and even the correct "play sound" code. Can anyone help me? Again, ANY help MUCH appreciated!

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.