PS2Mouse
                                
                                 PS2Mouse copied to clipboard
                                
                                    PS2Mouse copied to clipboard
                            
                            
                            
                        Can't begin mouse
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!
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.
I tried using the original PS/2 library and it did the same thing.
Same problem. With this library and original.
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.
This is quite a bit late, but has anyone made any progress on this? Was having the same issue
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