Keywish Hummer-Bot-2.0 Instruction Manual page 108

Table of Contents

Advertisement

if(ps2x.Button(UP_STRUM))
Serial.println("Up
if(ps2x.Button(DOWN_STRUM))
Serial.println("DOWN
if(ps2x.Button(PSB_START))
Serial.println("Start is being
if(ps2x.Button(PSB_SELECT))
Serial.println("Select is being
if(ps2x.Button(ORANGE_FRET)) {
Serial.print("Wammy Bar
Serial.println(ps2x.Analog(WHAMMY_BAR), DEC);
}
}
else
{
//DualShock Controller
ps2x.read_gamepad(false, vibrate);
at 'vibrate' speed
if(ps2x.Button(PSB_START))
Serial.println("Start is being
if(ps2x.Button(PSB_SELECT))
Serial.println("Select is being
if(ps2x.Button(PSB_PAD_UP)) {
Serial.print("Up held this hard:
Serial.println(ps2x.Analog(PSAB_PAD_UP), DEC);
}
if(ps2x.Button(PSB_PAD_RIGHT)){
Serial.print("Right held this hard:
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);
}
//will be TRUE as long as button is pressed
Strum");
Strum");
//will be TRUE as long as button is pressed
held");
held");
// print stick value IF TRUE
Position:");
//read controller and set large motor to spin
//will be TRUE as long as button is pressed
held");
held");
//will be TRUE as long as button is pressed
");
");
");
");
105

Advertisement

Table of Contents
loading

Related Products for Keywish Hummer-Bot-2.0

Table of Contents