also, an idea that came into my mind but it's incorrect and i can't understand why:
// Are we playing or stopping?
{
if(digitalRead(10, HIGH) //If Pin 10 is high i press the control button, then check:
if (digitalRead((13) == LOW) //if the pin13 is LOW
{
digitalWrite(13, HIGH) //then make it HIGH (button pressed)
}
if (digitalRead((13) == HIGH) //if the pin13 is HIGH
{
digitalWrite(13, LOW) //then release it
}
fPlayMode = digitalRead (13);
thanks again!