M5Unit-GESTURE 0.0.2 git rev:39d7f12
|
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.