So I just got a my controller hooked up to, and the code uploaded. However, it appears that there may be something buggy with my controller. I have a Sony branded Dualshock 2 controller. I have turned on debugging, and this is being reported constantly, without pressing any buttons:
OUT:IN
1:FF 42:71 0:10 0:FE 0:FF 0:73 0:70 0:0 0:4 0:0 0:0 0:0 0:0 0:0 0:0 0:0 0:0 0:0 0:0 0:0 0:0
Select is being held
When I press Select, this is what I get:
1:FF 42:71 0:10 0:FC 0:FF 0:73 0:78 0:0 0:79 0:0 0:0 0:0 0:0 0:0 0:0 0:0 0:0 0:0 0:0 0:0 0:0
Select is being held
L3 pressed
If I press Circle, this is what I get:
1:FF 42:71 0:10 0:FE 0:9F 0:73 0:78 0:0 0:1 0:0 0:0 0:0 0:0 0:0 0:0 0:0 0:0 0:0 0:0 0:0 0:0
Select is being held
Circle just pressed
X just changed
Pressing just X, I get:
1:FF 42:71 0:10 0:FE 0:FF 0:73 0:78 0:C 0:3 0:0 0:0 0:0 0:0 0:0 0:0 0:0 0:0 0:0 0:0 0:0 0:0
Select is being held
Square just released
X just changed
I have a 20k pullup resistor on the data connection. I can give you more combinations of button presses if that helps debug. Thanks.