
Product User’s Manual – ShieldPS2
21
22
23
24
25
26
27
left joystick down value
left joystick left value
left joystick right value
right joystick up value
right joystick down value
right joystick left value
right joystick right value
Applied to value from 16 to 27 (decimal):
ShieldPS2 will return the particular value of
corresponding joystick in the selected axis
Example :
If main board sent
20
(decimal), ShieldPS2 will
read and return the value of left joystick up.
28
Return the connection status
of PS2 controller on
ShieldPS2
ShieldPS2 will read PS2 controller status
1
is return if controller is detected or connected to
the PS2 connector on ShieldPS2
6.2 On board Vibrator Motor Control
Following commands require two bytes of data send from main board. 1st byte to indicates which
vibrator motor, following byte (2nd byte) to indicator motor status or the speed.
send 1st byte
(decimal)
send 2nd byte
(decimal)
Controller
Description
29
motor1 value
smaller vibrator on right
motor1 = 1 (motor on)
motor1 = 0 (motor off)
30
motor2 value
bigger vibrator on left
motor2 = 0 to 255
(adjustable speed)
Created by Cytron Technologies Sdn. Bhd. – All Rights Reserved
17