Version 1.0 - Library for Parallax OFN module 27903
Fork of OFN by
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.
|
Changes
Revision | Date | Who | Commit message |
---|---|---|---|
2:757ad351c8c6 | 2015-03-09 | nkadam | ver 1.0; |
1:ba28114bd6bb | 2015-03-09 | nkadam | Ver 1.0; |
0:c559e09a7b5d | 2015-03-09 | nkadam | Version 1.0 of Library for Parallax OFN module 27903 |