Shop OBEX P1 Docs P2 Docs Learn Events
Optical Finger Navigation Spin Demo Question — Parallax Forums

Optical Finger Navigation Spin Demo Question

John AbshierJohn Abshier Posts: 1,116
edited 2011-01-14 17:55 in Accessories
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

Comments

  • Jessica UelmenJessica Uelmen Posts: 490
    edited 2011-01-14 11:33
    Ahhhh, because that (professionally speaking) it what we call an "oops". Thanks for bringing this up.

    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 LindsaySteph Lindsay Posts: 767
    edited 2011-01-14 17:55
    The updated product document has been posted to the OFN Module Product Page. Thanks!
    -Steph
Sign In or Register to comment.