Emerson: Mouse Demo 3 - Ben Ryves 2005-2006
-------------------------------------------

Changes Since Demo 2:

Delays extended and some pauses added to improve detection; should
now detect more rodents than before. Also added a (useful) AT terminal.

Usage:

Send the program to your calculator. Run it, it shouldn't matter if
your mouse was plugged in before or if you plug it in afterwards. It
continuously checks for a connected mouse.

Once it has detected a valid mouse, it will display a success message
followed by the mouse type (standard PS/2 or Intellimouse). If your
mouse has a scroll wheel, it should be picked up as an Intellimouse.

Press any key to enter the main program. At this (or any point),
Clear quits.

Moving the mouse should move the mouse icon around, pressing a mouse
button should highlight the button on the icon. Scrolling the scroll
wheel should adjust the LCD's contrast.

Pressing Y=, Window, Zoom or Trace adjusts the mouse resolution between
1 count/mm and 8 counts/mm.

AT Terminal:

Type on the keys 0-9 and A-F to send a byte. If the display is marked ??,
the byte was not sent successfully. Clear quits, Del clears the screen.

Tests:
FF: Connected device will ack, reset and sent POST success.
F2: Send device ID.
F4: Enable transmission (move mouse!)
FE: Resent last value.
ED07: Set keyboard LEDs on :)