6#ifndef _MiniR4MotionExt_H_
7#define _MiniR4MotionExt_H_
13#define ADDR_PCA954X 0x70
16#define MatrixMotion_ADDR 0x23
36 typedef enum __MotionRegType
60 uint8_t i2cReadData(MotionRegType reg);
62 void i2cWriteData(MotionRegType reg, uint8_t data);
Class for motion sensing using a Matrix Motion sensor.
bool begin()
Initializes the MatrixMotion sensor.
int getAccel(AxisType axis)
Gets the accelerometer value for a specified axis.
int getGyro(AxisType axis)
Gets the gyro value for a specified axis.
int getRoll()
Gets the roll angle from the motion sensor.
int getYaw()
Gets the yaw angle from the motion sensor.
int getPitch()
Gets the pitch angle from the motion sensor.