I'm simply (at this point) trying to read data form the mouse to verify is is working as specified by the standard protocol here:
http://www.computer-engineering.org/ps2mouse/
I have a simple script to test:
Code:
while true
do
head -c 1 /dev/mouse|printf "%X\n"
done
But all I get are zeros (0). This can't be right, a simple cat /dev/mouse gives me tons of garbage. How can I dump the bytes being read in to the screen? Even better, is there a quick way to print the byte in base 2?
Thanks