Help with buttons on Ezmp3 shield

I am working on an mp3 player using Arduino and cytron EZmp3 shield. I am having a problem with one of the buttons, namely the pause button. I am trying to change the pause function to play the previous track. but the pause button acts the same as the "next track" button. The buttons use the A0 pin and the same resisters as the LCD with the buttons shield.

can someone help me find where the problem is?

Thanks
durgens_player.ino (4.8 KB)

Are you using an LCD shield stacked on the MP3 Shield?

Should it be "key = get_key(digitalRead(A0)); ? If this is a button.

No. This is a bunch of buttons connecting different pull-down resistors to A0. You need the analog reading to figure out which of the buttons is closed.

No, the player will be housed in a custom case. The buttons are mounted in the case. The sketch file use the LCD shield as a demo.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.