|
awesome library
0.5
Library for tutorial guiding through the library creation process
|
This Propeller C library was created for the Parallax 9-axis IMU Sensor, based on the STMicroelectronics LSM9DS1 inertial motion sensor chip. More...
Functions | |
| int | imu_init (int pinSCL, int pinSDIO, int pinAG, int pinM) |
| Initializes the LSM9DS1 IMU module. More... | |
Variables | |
| int | __pinAG |
| int | __pinM |
| int | __pinSDIO |
| int | __pinSCL |
| char | __autoCalc = 0 |
This Propeller C library was created for the Parallax 9-axis IMU Sensor, based on the STMicroelectronics LSM9DS1 inertial motion sensor chip.
| int imu_init | ( | int | pinSCL, |
| int | pinSDIO, | ||
| int | pinAG, | ||
| int | pinM | ||
| ) |
Initializes the LSM9DS1 IMU module.
This function initializes the LSM9DS1 IMU module. It sets the chip to 3-wire SPI mode and starts up the accelerometer, gyroscope, and magnetometer.
| pinSCL | I/O Pin connected to the module's SCL pin. |
| pinSDIO | I/O Pin connected to the module's SDIO pin. |
| pinAG | I/O Pin connected to the module's CS_AG pin. |
| pinM | I/O Pin connected to the module's CS_M pin. |
1.8.11