Home › Forums › Sparkfun MP3 Shield Library Support Forum › vs1053 + keypad: mp3 code › Reply To: vs1053 + keypad: mp3 code
February 20, 2014 at 8:01 am
#3130
Anonymous
Inactive
Tank you so much for your help…
i used a digital input… and it did the job…
case ‘6’:
for (trackNumber=1; trackNumber <= 20; trackNumber++) {
if(!MP3player.playTrack(trackNumber)) { // if it returns an error move on to next track.
while (MP3player.isPlaying() && digitalRead(4) == LOW );
MP3player.stopTrack();
}
}
break;
i couldn’t figure out your tip about the check the keypad and return if it was pressed… i tried a lot of things with keypad and it was always blocked…
obrigado