![]() |
MatrixMiniR4 1.1.9
Matrix Mini R4 Arduino Library API Documentation
|
A class for MATRIX Gesture Seneor. More...
#include <MiniR4_MXGesture.h>
Classes | |
| struct | sGestureDescription_t |
Public Types | |
| enum | eGesture_t { eGestureNone = 0x00 , eGestureRight = 0x01 << 0 , eGestureLeft = 0x01 << 1 , eGestureUp = 0x01 << 2 , eGestureDown = 0x01 << 3 , eGestureForward = 0x01 << 4 , eGestureBackward = 0x01 << 5 , eGestureClockwise = 0x01 << 6 , eGestureAntiClockwise = 0x01 << 7 , eGestureWave = 0x01 << 8 , eGestureWaveSlowlyDisorder = 0x01 << 9 , eGestureWaveSlowlyLeftRight , eGestureWaveSlowlyUpDown , eGestureWaveSlowlyForwardBackward , eGestureAll = 0xff } |
| gesture information More... | |
| enum | eBank_t { eBank0 = 0 , eBank1 = 1 } |
| Register Bank. More... | |
| enum | eRateMode_t { eNormalRate = 0 , eGamingRate = 1 } |
| Gesture Update Rate. More... | |
Public Member Functions | |
| int | begin (void) |
| init function | |
| void | setGestureHighRate (bool b) |
| Set gesture detection mode. | |
| String | gestureDescription (int gesture) |
| Get the string descritpion corresponding to the gesture number. | |
| int | getGesture (void) |
| Get gesture. | |
Public Attributes | |
| uint8_t | _ch = 0 |
| TwoWire * | _pWire |
A class for MATRIX Gesture Seneor.
This class allows reading 9 gesture from the MATRIX Gesture Seneor.
Definition at line 101 of file MiniR4_MXGesture.h.
Register Bank.
| Enumerator | |
|---|---|
| eBank0 | some registers are located in Bank0 |
| eBank1 | some registers are located in Bank1 |
Definition at line 137 of file MiniR4_MXGesture.h.
gesture information
Definition at line 110 of file MiniR4_MXGesture.h.
Gesture Update Rate.
| Enumerator | |
|---|---|
| eNormalRate | Gesture Update Rate is 120HZ, Gesture speed is 60°/s - 600°/s |
| eGamingRate | Gesture Update Rate is 240HZ,Gesture speed is 60°/s - 1200°/s |
Definition at line 146 of file MiniR4_MXGesture.h.
| int MatrixGesture::begin | ( | void | ) |
init function
Definition at line 17 of file MiniR4_MXGesture.cpp.
| String MatrixGesture::gestureDescription | ( | int | gesture | ) |
Get the string descritpion corresponding to the gesture number.
| gesture | Gesture number inlcuded in the int |
Definition at line 43 of file MiniR4_MXGesture.cpp.
| int MatrixGesture::getGesture | ( | void | ) |
Get gesture.
Definition at line 56 of file MiniR4_MXGesture.cpp.
| void MatrixGesture::setGestureHighRate | ( | bool | b | ) |
Set gesture detection mode.
| b | true Set to fast detection mode (default) can recognize 9 gestures, False: slow mode will have 4 expanded gestures. |
Definition at line 54 of file MiniR4_MXGesture.cpp.
| uint8_t MatrixGesture::_ch = 0 |
Definition at line 103 of file MiniR4_MXGesture.h.
| TwoWire* MatrixGesture::_pWire |
Definition at line 104 of file MiniR4_MXGesture.h.