Version 1.0 - Library for Parallax OFN module 27903
Fork of OFN by
OFN Class Reference
Class for the Parallax OFN module 27903. More...
#include <ofn.h>
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. |
Detailed Description
Class for the Parallax OFN module 27903.
Definition at line 45 of file ofn.h.
Constructor & Destructor Documentation
OFN | ( | PinName | sda, |
PinName | scl | ||
) |
Member Function Documentation
bool checkMotion | ( | ) |
int readOrientation | ( | ) |
int readX | ( | ) |
Generated on Tue Jul 12 2022 19:51:47 by 1.7.2