Home Forums Sparkfun MP3 Shield Library Support Forum Adding an LED.. Reply To: Adding an LED..

#3502
Anonymous
Inactive

Thank you, Mr. Flaga.. I’m still a little confused about the difference between “getVUlevel” and “getVUmeter” and how to properly implement them in this code.. shouldn’t something like this work?

void loop() {
MP3player.playTrack(random(5)); // range of tracks to randomly play.
while (MP3player.isPlaying());
{

MP3player.setVUmeter(1);
Serial.println(MP3player.getVUmeter());
}

MP3player.stopTrack();// stop track

}