|
M5Unit-GESTURE 0.1.0 git rev:73f5542
|
Measurement data group. More...
#include <unit_PAJ7620U2.hpp>
Public Member Functions | |
| Mode | mode () const |
| Gets the operation mode. | |
| Gesture | gesture () const |
| Gets the gesture (Common) | |
Proximity mode | |
| uint8_t | brightness () const |
| Gets the brightness. | |
| bool | approach () const |
| Detect the approach? | |
Cursor mode | |
| uint16_t | cursorX () const |
| Gets the cursor X the any object. | |
| uint16_t | cursorY () const |
| Gets the cursor Y the any object. | |
Public Attributes | ||
| std::array< uint8_t, 2+4 > | raw {} | |
| Gesture | data_gesture {} | |
| Mode | data_mode {} | |
| union { | ||
| struct { | ||
| uint8_t proximity_brightness | ||
| bool proximity_approach | ||
| } | ||
| struct { | ||
| uint16_t cursor_x {} | ||
| uint16_t cursor_y {} | ||
| } | ||
| }; | ||
Measurement data group.