Keyestudio 4DOF Manual page 234

Robot arm kit
Hide thumbs Also See for 4DOF:
Table of Contents

Advertisement

www.keyestudio.com
Serial.println(ps2x.Analog(PSAB_PAD_RIGHT), DEC);
}
if(ps2x.Button(PSB_PAD_LEFT)){
Serial.print("LEFT held this hard: ");
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);
on
if (ps2x.NewButtonState())
or off to on)
{
if(ps2x.Button(PSB_R3))
{
//Serial.println("R3 pressed");
//this will set the large motor vibrate speed based
//how hard you press the blue (X) button
//will be TRUE if any button changes state (on to off,
231

Advertisement

Table of Contents
loading

Table of Contents