VS1053 MP3 Shield - ID3 question
Posted: Tue 2020-11-03 13:16
Hi everyone!
I'm doing my first arduino project. It's a pedalboard wich triggers audio files.
I'm using arduino UNO and VS1053 MP3 Shield
I have a 1602 lcd where I want to place the audio files names.
There will be 4 buttons to play samples and 2 more for NEXT and PREVIOUS sounds in the list.
So, I want to have 4 track names in the lcd each time.
The problem is.. The only way that I managed to get the id3 from the track is by playing it first..
I want to find a way to get all 4 names at a given time. Is there a way?
I'm using the NEXT and PREVIOUS buttons to call a function that updates the LCD with the current names. Something like this:
I'm doing my first arduino project. It's a pedalboard wich triggers audio files.
I'm using arduino UNO and VS1053 MP3 Shield
I have a 1602 lcd where I want to place the audio files names.
There will be 4 buttons to play samples and 2 more for NEXT and PREVIOUS sounds in the list.
So, I want to have 4 track names in the lcd each time.
The problem is.. The only way that I managed to get the id3 from the track is by playing it first..
I want to find a way to get all 4 names at a given time. Is there a way?
I'm using the NEXT and PREVIOUS buttons to call a function that updates the LCD with the current names. Something like this:
Code: Select all
void UpdateLCD(){
uint8_t prim = MP3player.playTrack(1); //Play track 1
char titulo1[30]; // Buffer to store track title
MP3player.trackTitle((char*)&titulo1); //Get current track title - id3
lcd.clear();
lcd.setCursor(0, 0);
lcd.print(titulo1);
}