}
}
}
}
}
if(ps2x.Button(PSB_L2))
Serial.println("L2 pressed");
if(ps2x.Button(PSB_R2))
Serial.println("R2 pressed");
if(ps2x.Button(PSB_GREEN))
Serial.println("Triangle pressed");
}
if(ps2x.ButtonPressed(PSB_RED))
Serial.println("Circle just pressed");
if(ps2x.ButtonReleased(PSB_PINK))
Serial.println("Square just released");
if(ps2x.NewButtonState(PSB_BLUE))
Serial.println("X just changed");
//will be TRUE if button was JUST pressed
//will be TRUE if button was JUST released
//will be TRUE if button was JUST pressed OR released
245
Need help?
Do you have a question about the 4DOF and is the answer not in the manual?
Questions and answers