|
Emakefun Gesture Recognizer 2.0
|
手势识别传感器 更多...
#include <gesture_recognizer.h>
Public 类型 | |
| enum | Gesture : uint8_t { kGestureNone = 0x0 , kGestureRightSwipe = 0x01 , kGestureLeftSwipe = 0x02 , kGestureBackwardSwipe = 0x03 , kGestureForwardSwipe = 0x04 , kGestureUpward = 0x05 , kGestureDownward = 0x06 , kGestureExited = 0x07 , kGestureHover = 0x08 } |
| 手势类型 更多... | |
Public 成员函数 | |
| GestureRecognizer (const uint8_t i2c_address=kDefaultI2cAddress) | |
| 构造函数 | |
| int32_t | Initialize (TwoWire *const wire) |
| Gesture | GetGesture () |
| 获取识别到的手势 | |
静态 Public 属性 | |
| static constexpr uint8_t | kDefaultI2cAddress = 0x39 |
| 手势识别传感器默认I2C地址 | |
手势识别传感器
| enum emakefun::GestureRecognizer::Gesture : uint8_t |
| emakefun::GestureRecognizer::GestureRecognizer | ( | const uint8_t | i2c_address = kDefaultI2cAddress | ) |
构造函数
| [in] | i2c_address | 手势识别传感器I2C地址,默认值为0x39 |
| GestureRecognizer::Gesture emakefun::GestureRecognizer::GetGesture | ( | ) |
获取识别到的手势
|
staticconstexpr |