Playstation 2 controller help
ACE227
Posts: 15
I am using the propeller to controll a robot for a competition. I have downloaded the PS2_Controller_Serial_Demo object and·I have the·PS2 controller·comunicating with the propeller. I am now stuck because I dont know how to take binary digits·I have displayed into the variables that·I have declared. Please help. The top file is robot.spin.
Thanks,
Ace227
Thanks,
Ace227
spin
1012B
Comments
data1 := PS2.get_Data1
DPAD_LEFT := data1 & %10000000
DPAD_DOWN := data1 & %01000000
etc
data2 := PS2.get_Data2
KEY_L2 := data2 & %00000001
John Abshier