PS2Mouse icon indicating copy to clipboard operation
PS2Mouse copied to clipboard

Can't begin mouse

Open ohadbenor opened this issue 8 years ago • 6 comments

I uploaded the code as is to my arduino, and connected my mouse as instructed on instructables.

The problem is that the code is stuck on the while loop at line 22 on PS2mouse.cpp.

(Still in the PS2Mouse::begin() function)

Thanks!

ohadbenor avatar Apr 21 '17 14:04 ohadbenor

Same problem. I get the mouse hooked up, upload the code, and then Bam! Nothing happens. Open the serial monitor, it says "Setup..." and never does a thing more.

DangerouslyExplosive avatar Oct 01 '17 11:10 DangerouslyExplosive

I tried using the original PS/2 library and it did the same thing.

DangerouslyExplosive avatar Oct 01 '17 11:10 DangerouslyExplosive

Same problem. With this library and original.

teoneg avatar Jan 30 '18 11:01 teoneg

The fellow who wrote the library told me he's stopped supporting it for some time. Apparently it only works with early versions of the IDE... Which I use by default. And it still don't work. The guy also suggested writing my own library and/or hacking around with the Keyboard/Mouse Library included in the IDE.

DangerouslyExplosive avatar Jan 30 '18 11:01 DangerouslyExplosive

This is quite a bit late, but has anyone made any progress on this? Was having the same issue

DevwratJoshi avatar Mar 17 '21 06:03 DevwratJoshi

This works fine for me with a 2-button Dell mouse, and IDE 1.8.11. However, I'm not sure why there are three reads in begin(): void PS2Mouse::begin(void){ write(0xFF); for(int i=0; i<3; i++) read(); I suggest trying only 2 read()'s. From what I read of the protocol here, there should only be two reads after the 0xFF reset: https://isdaman.com/alsos/hardware/mouse/ps2interface.htm

agentbooth avatar May 24 '21 18:05 agentbooth