www.keyestudio.com
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))
released
Serial.println("X just changed");
//turn
zhuandong();
//claw
zhuazi();
//lower arm
dabi();
//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
239
Need help?
Do you have a question about the 4DOF and is the answer not in the manual?
Questions and answers