|
DevLab_ICM20948 1.0.2
ICM-20948 9-Axis Motion Sensor Driver
|
Go to the source code of this file.
Macros | |
| #define | SDA_PIN 6 |
| I2C SDA pin used by the example board. | |
| #define | SCL_PIN 7 |
| I2C SCL pin used by the example board. | |
| #define | I2C_FREQ 400000UL |
| I2C bus speed in hertz. | |
| #define | ICM_ADDR 0x69 |
| ICM-20948 I2C address selected by the AD0 pin. | |
Functions | |
| void | setup () |
| Configure the IMU for gyroscope-only operation over I2C. | |
| void | loop () |
| Read and print gyroscope data in degrees per second. | |
Variables | |
| DevLab_ICM20948 | imu |
| Global ICM-20948 driver instance. | |
| #define I2C_FREQ 400000UL |
I2C bus speed in hertz.
Definition at line 46 of file i2c_gyro.ino.
| #define ICM_ADDR 0x69 |
ICM-20948 I2C address selected by the AD0 pin.
Definition at line 48 of file i2c_gyro.ino.
| #define SCL_PIN 7 |
I2C SCL pin used by the example board.
Definition at line 44 of file i2c_gyro.ino.
| #define SDA_PIN 6 |
I2C SDA pin used by the example board.
Definition at line 42 of file i2c_gyro.ino.
| void loop | ( | ) |
Read and print gyroscope data in degrees per second.
Definition at line 125 of file i2c_gyro.ino.
| void setup | ( | ) |
Configure the IMU for gyroscope-only operation over I2C.
The function initializes the I2C interface, applies safe defaults, enables the gyroscope, and configures DLPF, full-scale range, and output data rate.
Definition at line 59 of file i2c_gyro.ino.
| DevLab_ICM20948 imu |
Global ICM-20948 driver instance.
Definition at line 51 of file i2c_gyro.ino.