Mp3 player
Placed onThe code
In this code we use the TMPpcm and SD library. Normally the SD library is already installed. The others can be found at this link: https://github.com/TMRh20/TMRpcm . To install the library press: Scetch > Include library > Add zip library.
To begin with, we define our libraries and variables
then we set everything up
Finally, we add the functions of our light and buttons. The light will illuminate if no µSD card is detected. The other buttons are there to pause the song and switch songs. So to start the music you have to press the 'next' or 'previous' button