User`s manual

ROBOT . HEAD to TOE
Product User’s Manual – SKPS
Created by Cytron Technologies Sdn. Bhd. – All Rights Reserved
19
7. PROTOCOL
7.1 Non-ASCII Mode (Microcontroller)
7.1.1 Button and PS2 Controller Status
Send (decimal) Button of Controller Description
0 select button
1 left joystick center button
2
right joystick center
button
3 start button
4 up button
5 right button
6 down button
7 left button
8 L2 button
9 R2 button
10 L1 button
11 R1 button
12 triangle button
13 circle button
14 cross button
15 square button
SKPS will return the status of
corresponding button when the particular
decimal value is received
0 if the button is pressed
1 if button is not pressed
Example:
If microcontroller sent 10 (decimal), SKPS
will check L1 button status on PS2
Controller. SKPS will return
0 if L1 button is pressed or
1 if L1 is not pressed.
16 left joystick x-axis
17 left joystick y-axis
18 right joystick x-axis
19 right joystick y-axis
20 left joystick up value
21 left joystick down value
22 left joystick left value
23 left joystick right value
24 right joystick up value
25 right joystick down value
26 right joystick left value
27 right joystick right value
SKPS will return the particular value of
corresponding joystick in the selected axis
Example :
If microcontroller sent 20 (decimal), SKPS
will read and return the value of left
joystick up.
28
SKPS will read controller status
1 is return if controller is detected