www.keyestudio.com
}
if(ps2x.ButtonPressed(PSB_RED))
was JUST pressed
Serial.println("Circle just pressed");
if(ps2x.ButtonReleased(PSB_PINK))
was JUST released
Serial.println("Square just released");
if(ps2x.NewButtonState(PSB_BLUE))
was JUST pressed OR released
Serial.println("X just changed");
//转动
zhuandong();
//爪子
zhuazi();
//大臂
dabi();
//小臂
//will be TRUE if button
//will be TRUE if button
//will be TRUE if button
198
Need help?
Do you have a question about the 4DOF and is the answer not in the manual?
Questions and answers