www.keyestudio.com
Serial.println(ps2x.Analog(PSAB_PAD_LEFT), DEC);
}
if(ps2x.Button(PSB_PAD_DOWN)){
Serial.print("DOWN held this hard: ");
Serial.println(ps2x.Analog(PSAB_PAD_DOWN), DEC);
}
vibrate = ps2x.Analog(PSAB_BLUE);
speed based on
button
if (ps2x.NewButtonState())
state (on to off, or off to on)
{
if(ps2x.Button(PSB_R3))
{
//Serial.println("R3 pressed");
// record
s1=myservo1.read();
delay(100);
//this will set the large motor vibrate
//how hard you press the blue (X)
//will be TRUE if any button changes
211
Need help?
Do you have a question about the 4DOF and is the answer not in the manual?
Questions and answers