Version 1.0 - Library for Parallax OFN module 27903

Fork of OFN by Neha Kadam

Import library

Public Member Functions

OFN (PinName sda, PinName scl)
Constructor.
bool checkMotion ()
Function to check if motion has been detected Checks the 7th bit of MOTION register and Returns true if motion detected else returns false.
int readX ()
Function to get displacement in the X direction Returns an integer value.
int readY ()
Function to get displacement in the X direction Returns an integer value.
int readOrientation ()
Function to read the Orientation register Returns an integer value 1 - default orientation 0 - rotated by 90 degrees.

History

ver 1.0; default tip

2015-03-09, by nkadam [Mon, 09 Mar 2015 04:02:49 +0000] rev 2

ver 1.0;


Ver 1.0;

2015-03-09, by nkadam [Mon, 09 Mar 2015 03:58:38 +0000] rev 1

Ver 1.0;


Version 1.0 of Library for Parallax OFN module 27903

2015-03-09, by nkadam [Mon, 09 Mar 2015 03:18:22 +0000] rev 0

Version 1.0 of Library for Parallax OFN module 27903