Optical Finger Navigation Spin Demo Question
John Abshier
Posts: 1,116
The PDF documentation for the OFN says that the MOT pin is an output. The Spin demo code drives this pin low. Why?
John Abshier
John Abshier
Comments
Mostly the MOT pin is an output to determine if there was movement since the last time it was read. However, by writing anything to the MOT pin, the motion & overflow bits are cleared, as well as the Delta_X & Delta_Y registers.
Translated to the spin demo code, clearing these bits doesn't allow the cursor to be easily moved while the button is pressed & creates a more stable 'button pressed' display.
Expect an update to the documentation shortly.
Cheers,
Jessica
-Steph