Hi Alan, He is enabling the pull-up resistor on the data line, which works fine for me on the Axon2 board which is an AtMega640 using webbotlib. Some in other thread: viewtopic.php?f=7&t=5876
I also have it working on the Atom Pro on IO pins 0-3 using the built-in as well, using H8 built in pull-up resistor.
I did not see anything obvious in the code. I have other code the is in a zip file on my debrat thread in the biped section that is working with the Lynxmotion wireless controller.
1) I have tried several different processors and code and languages and have never been able to get a logitech wireless ps2 to work. I have heard this from others as well. Most have luck with Madcatz and Lynxmotion...
2) Some controllers need the higher voltage pin connected. on the lynxmotion PS2 cable it is the green wire. I needed this earlier for the Sector 7 wireless controller.
3) You can have problems if you query the Ps2 controller to fast without a delay between queries. If you query to fast, the PS2 controller receiver does not have time to talk to the remote and the lights will blink and no data is update... Been there!
4) I often look at this site: http://www.curiousinventor.com/guides/ps2
when I am working on PS2 controller stuff.
That is all I can think of for now.