maix::ext_dev::qmi8658
maix.ext_dev.qmi8658 module
This is
maix::ext_dev::qmi8658
module of MaixCDK.
All of these elements are in namespacemaix::ext_dev::qmi8658
.For MaixCDK developer: DO NOT edit this doc file manually, this doc is auto generated!
1. Module#
No module
2. Enum#
3. Variable#
4. Function#
5. Class#
5.1. QMI8658#
QMI8656 driver class
C++ defination code:
5.1.1. __init__#
Construct a new QMI8658 object, will open QMI8658
item | description |
---|---|
type | func |
param | i2c_bus: i2c bus number. Automatically selects the on-board qmi8658 when -1 is passed in. addr: QMI8658 i2c addr. freq: QMI8658 freq mode: QMI8658 Mode: ACC_ONLY/GYRO_ONLY/DUAL acc_scale: acc scale, see @qmi8658::AccScale acc_odr: acc output data rate, see @qmi8658::AccOdr gyro_scale: gyro scale, see @qmi8658::GyroScale gyro_odr: gyro output data rate, see @qmi8658::GyroOdr block: block or non-block, defalut is true |
static | False |
C++ defination code:
5.1.2. read#
Read data from QMI8658.
item | description |
---|---|
type | func |
return | list type. If only one of the outputs is initialized, only [x,y,z] of that output will be returned. If all outputs are initialized, [acc_x, acc_y, acc_z, gyro_x, gyro_y, gyro_z] is returned. |
static | False |
C++ defination code: