Go Down

Topic: Using Lilypad mp3 to play multiple tracks per trigger (Read 345 times) previous topic - next topic

wbandel

I'm trying to modify code that goes along with the Lilypad mp3 board. There are two examples, "Trigger" and "Player". I'm trying to take the "Trigger" sketch and make it so that instead of playing one file, it will randomly select a file from storage and play it. This has proved much more difficult than I anticipated because my understanding of code is very simple and I don't quite grasp how the files are being read from the sd card into the code. Here is a link to the library I'm trying to figure out.

https://github.com/sparkfun/LilyPad_MP3_Player

If anyone has experience with reading from sd cards through arduino, or has any input, I would greatly appreciate it. I have attached my own chopped up version of code, which I'm sure will end up being quite laughable. Hopefully it gets across my intentions.

Go Up