|
DevLab_ICM20948 1.0.2
ICM-20948 9-Axis Motion Sensor Driver
|
#include <DevLab_ICM20948.h>Go to the source code of this file.
Macros | |
| #define | SPI_FAST_SPEED 1000000 |
| SPI clock used during sensor initialization and reads. | |
| #define | CS_PIN D10 |
Functions | |
| SPIClass | spi_bus (SPI) |
| SPI bus object used by the IMU driver. | |
| void | setup () |
| Configure the IMU for accelerometer-only operation over SPI. | |
| void | loop () |
| Read and print accelerometer data in g. | |
Variables | |
| DevLab_ICM20948 | imu |
| Global ICM-20948 driver instance. | |
| #define CS_PIN D10 |
Definition at line 36 of file spi_accel.ino.
| #define SPI_FAST_SPEED 1000000 |
SPI clock used during sensor initialization and reads.
Definition at line 34 of file spi_accel.ino.
| void loop | ( | ) |
Read and print accelerometer data in g.
Definition at line 122 of file spi_accel.ino.
| void setup | ( | ) |
Configure the IMU for accelerometer-only operation over SPI.
Definition at line 49 of file spi_accel.ino.
| SPIClass spi_bus | ( | SPI | ) |
SPI bus object used by the IMU driver.
| DevLab_ICM20948 imu |
Global ICM-20948 driver instance.
Definition at line 38 of file spi_accel.ino.