Exchanging a push button by a limit switch for my MP3 player

Hi there,

I almost solved my problem, BUT...
i want to exchange the (4 pin) pushbutton by a limit switch (3 pin=Com/No/Cn) for my MP3 player (+/ - /RX/TX)
Can someone help me please?

This is my code: //Demo for Serial MP3 Player A module//by Open-Smart Team and Catalex Team// - Pastebin.com

Com/No/Cn? Are you sure it’s not Com/NO/NC? Pushbuttons are usually NO (Normally Open) so just swap the connections.

If you want anyone to look at your code post it here in </> code tags (just like you did in a previous post).