![Keywish Hummer-Bot-1.0 Instruction Manual Download Page 108](http://html.mh-extra.com/html/keywish/hummer-bot-1-0/hummer-bot-1-0_instruction-manual_1962646108.webp)
105
void
setup
() {
Serial
.
begin
(
9600
);
delay
(
500
);
//added delay to give wireless ps2 module some time to startup, before
configuring it
//CHANGES for v1.6 HERE!!! **************PAY ATTENTION*************
//setup pins and settings: GamePad(clock, command, attention, data, Pressures?,
Rumble?) check for error
error
=
ps2x
.
config_gamepad
(
PS2_CLK
,
PS2_CMD
,
PS2_SEL
,
PS2_DAT
,
pressures
,
rumble
);
if
(
error
==
0
){
Serial
.
(
"Found Controller, configured successful "
);
Serial
.
(
"pressures = "
);
if
(
pressures
)
Serial
.
println
(
"true "
);
else
Serial
.
println
(
"false"
);
Serial
.
(
"rumble = "
);
if
(
rumble
)
Serial
.
println
(
"true)"
);
else
Serial
.
println
(
"false"
);
Serial
.
println
(
"Try out all the buttons, X will vibrate the controller, faster as
you press harder;"
);
Serial
.
println
(
"holding L1 or R1 will print out the analog stick values."
);
Serial
.
println
(
"Note: Go to www.billporter.info for updates and to report bugs."
);
}
else
if
(
error
==
1
)
Serial
.
println
(
"No controller found, check wiring, see readme.txt to enable debug.
visit www.billporter.info for troubleshooting tips"
);
else
if
(
error
==
2
)
Serial
.
println
(
"Controller found but not accepting commands. see readme.txt to enable
debug. Visit www.billporter.info for troubleshooting tips"
);
else
if
(
error
==
3
)
Serial
.
println
(
"Controller refusing to enter Pressures mode, may not support it. "
);
type
=
ps2x
.
readType
();
Summary of Contents for Hummer-Bot-1.0
Page 1: ...Hummer Bot 1 0 Instruction Manual V 2 0 ...
Page 18: ...15 Step4 You need to install motors Figure 3 1 5 Schematic diagram of motor installation ...
Page 50: ...47 Figure 3 2 15 Diagram of Data without Obstacles ...
Page 83: ...80 Test code Path hummer bot Lesson ModuleDemo IrkeyPressed IrkeyPressed ino ...