Skip to content

Commit fd948fb

Browse files
authored
Merge pull request #106 from sparkfun/release_candidate
v1.2.10 - Add get and set bias methods plus a new example
2 parents d5ae1eb + 368aa6b commit fd948fb

File tree

15 files changed

+764
-30
lines changed

15 files changed

+764
-30
lines changed

examples/Arduino/Example10_DMP_FastMultipleSensors/Example10_DMP_FastMultipleSensors.ino

+3-3
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,9 @@
3434
#define CS_PIN 2 // Which pin you connect CS to. Used only when "USE_SPI" is defined
3535

3636
#define WIRE_PORT Wire // Your desired Wire port. Used when "USE_SPI" is not defined
37-
#define AD0_VAL 1 // The value of the last bit of the I2C address. \
38-
// On the SparkFun 9DoF IMU breakout the default is 1, and when \
39-
// the ADR jumper is closed the value becomes 0
37+
// The value of the last bit of the I2C address.
38+
// On the SparkFun 9DoF IMU breakout the default is 1, and when the ADR jumper is closed the value becomes 0
39+
#define AD0_VAL 1
4040

4141
#ifdef USE_SPI
4242
ICM_20948_SPI myICM; // If using SPI create an ICM_20948_SPI object

examples/Arduino/Example11_DMP_Bias_Save_Restore_ESP32/Example11_DMP_Bias_Save_Restore_ESP32.ino

+401
Large diffs are not rendered by default.

examples/Arduino/Example1_Basics/Example1_Basics.ino

+3-3
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@
1919
#define CS_PIN 2 // Which pin you connect CS to. Used only when "USE_SPI" is defined
2020

2121
#define WIRE_PORT Wire // Your desired Wire port. Used when "USE_SPI" is not defined
22-
#define AD0_VAL 1 // The value of the last bit of the I2C address. \
23-
// On the SparkFun 9DoF IMU breakout the default is 1, and when \
24-
// the ADR jumper is closed the value becomes 0
22+
// The value of the last bit of the I2C address.
23+
// On the SparkFun 9DoF IMU breakout the default is 1, and when the ADR jumper is closed the value becomes 0
24+
#define AD0_VAL 1
2525

2626
#ifdef USE_SPI
2727
ICM_20948_SPI myICM; // If using SPI create an ICM_20948_SPI object

examples/Arduino/Example2_Advanced/Example2_Advanced.ino

+3-3
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@
2020
#define CS_PIN 2 // Which pin you connect CS to. Used only when "USE_SPI" is defined
2121

2222
#define WIRE_PORT Wire // Your desired Wire port. Used when "USE_SPI" is not defined
23-
#define AD0_VAL 1 // The value of the last bit of the I2C address. \
24-
// On the SparkFun 9DoF IMU breakout the default is 1, and when \
25-
// the ADR jumper is closed the value becomes 0
23+
// The value of the last bit of the I2C address.
24+
// On the SparkFun 9DoF IMU breakout the default is 1, and when the ADR jumper is closed the value becomes 0
25+
#define AD0_VAL 1
2626

2727
#ifdef USE_SPI
2828
ICM_20948_SPI myICM; // If using SPI create an ICM_20948_SPI object

examples/Arduino/Example3_Interrupts/Example3_Interrupts.ino

+3-3
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,9 @@
2828
#define CS_PIN 2 // Which pin you connect CS to. Used only when "USE_SPI" is defined
2929

3030
#define WIRE_PORT Wire // Your desired Wire port. Used when "USE_SPI" is not defined
31-
#define AD0_VAL 1 // The value of the last bit of the I2C address. \
32-
// On the SparkFun 9DoF IMU breakout the default is 1, and when \
33-
// the ADR jumper is closed the value becomes 0
31+
// The value of the last bit of the I2C address.
32+
// On the SparkFun 9DoF IMU breakout the default is 1, and when the ADR jumper is closed the value becomes 0
33+
#define AD0_VAL 1
3434

3535
#ifdef USE_SPI
3636
ICM_20948_SPI myICM; // If using SPI create an ICM_20948_SPI object

examples/Arduino/Example4_WakeOnMotion/Example4_WakeOnMotion.ino

+3-3
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,9 @@
2828
#define CS_PIN 2 // Which pin you connect CS to. Used only when "USE_SPI" is defined
2929

3030
#define WIRE_PORT Wire // Your desired Wire port. Used when "USE_SPI" is not defined
31-
#define AD0_VAL 1 // The value of the last bit of the I2C address. \
32-
// On the SparkFun 9DoF IMU breakout the default is 1, and when \
33-
// the ADR jumper is closed the value becomes 0
31+
// The value of the last bit of the I2C address.
32+
// On the SparkFun 9DoF IMU breakout the default is 1, and when the ADR jumper is closed the value becomes 0
33+
#define AD0_VAL 1
3434

3535
#ifdef USE_SPI
3636
ICM_20948_SPI myICM; // If using SPI create an ICM_20948_SPI object

examples/Arduino/Example6_DMP_Quat9_Orientation/Example6_DMP_Quat9_Orientation.ino

+3-3
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,9 @@
3636
#define CS_PIN 2 // Which pin you connect CS to. Used only when "USE_SPI" is defined
3737

3838
#define WIRE_PORT Wire // Your desired Wire port. Used when "USE_SPI" is not defined
39-
#define AD0_VAL 1 // The value of the last bit of the I2C address. \
40-
// On the SparkFun 9DoF IMU breakout the default is 1, and when \
41-
// the ADR jumper is closed the value becomes 0
39+
// The value of the last bit of the I2C address.
40+
// On the SparkFun 9DoF IMU breakout the default is 1, and when the ADR jumper is closed the value becomes 0
41+
#define AD0_VAL 1
4242

4343
#ifdef USE_SPI
4444
ICM_20948_SPI myICM; // If using SPI create an ICM_20948_SPI object

examples/Arduino/Example7_DMP_Quat6_EulerAngles/Example7_DMP_Quat6_EulerAngles.ino

+3-3
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,9 @@
3636
#define CS_PIN 2 // Which pin you connect CS to. Used only when "USE_SPI" is defined
3737

3838
#define WIRE_PORT Wire // Your desired Wire port. Used when "USE_SPI" is not defined
39-
#define AD0_VAL 1 // The value of the last bit of the I2C address. \
40-
// On the SparkFun 9DoF IMU breakout the default is 1, and when \
41-
// the ADR jumper is closed the value becomes 0
39+
// The value of the last bit of the I2C address.
40+
// On the SparkFun 9DoF IMU breakout the default is 1, and when the ADR jumper is closed the value becomes 0
41+
#define AD0_VAL 1
4242

4343
#ifdef USE_SPI
4444
ICM_20948_SPI myICM; // If using SPI create an ICM_20948_SPI object

examples/Arduino/Example8_DMP_RawAccel/Example8_DMP_RawAccel.ino

+3-3
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,9 @@
3434
#define CS_PIN 2 // Which pin you connect CS to. Used only when "USE_SPI" is defined
3535

3636
#define WIRE_PORT Wire // Your desired Wire port. Used when "USE_SPI" is not defined
37-
#define AD0_VAL 1 // The value of the last bit of the I2C address. \
38-
// On the SparkFun 9DoF IMU breakout the default is 1, and when \
39-
// the ADR jumper is closed the value becomes 0
37+
// The value of the last bit of the I2C address.
38+
// On the SparkFun 9DoF IMU breakout the default is 1, and when the ADR jumper is closed the value becomes 0
39+
#define AD0_VAL 1
4040

4141
#ifdef USE_SPI
4242
ICM_20948_SPI myICM; // If using SPI create an ICM_20948_SPI object

examples/Arduino/Example9_DMP_MultipleSensors/Example9_DMP_MultipleSensors.ino

+3-3
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,9 @@
3434
#define CS_PIN 2 // Which pin you connect CS to. Used only when "USE_SPI" is defined
3535

3636
#define WIRE_PORT Wire // Your desired Wire port. Used when "USE_SPI" is not defined
37-
#define AD0_VAL 1 // The value of the last bit of the I2C address. \
38-
// On the SparkFun 9DoF IMU breakout the default is 1, and when \
39-
// the ADR jumper is closed the value becomes 0
37+
// The value of the last bit of the I2C address.
38+
// On the SparkFun 9DoF IMU breakout the default is 1, and when the ADR jumper is closed the value becomes 0
39+
#define AD0_VAL 1
4040

4141
#ifdef USE_SPI
4242
ICM_20948_SPI myICM; // If using SPI create an ICM_20948_SPI object

keywords.txt

+18
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,24 @@ readDMPdataFromFIFO KEYWORD2
9898
setGyroSF KEYWORD2
9999
initializeDMP KEYWORD2
100100
begin KEYWORD2
101+
setBiasGyroX KEYWORD2
102+
setBiasGyroY KEYWORD2
103+
setBiasGyroZ KEYWORD2
104+
setBiasAccelX KEYWORD2
105+
setBiasAccelY KEYWORD2
106+
setBiasAccelZ KEYWORD2
107+
setBiasCPassX KEYWORD2
108+
setBiasCPassY KEYWORD2
109+
setBiasCPassZ KEYWORD2
110+
getBiasGyroX KEYWORD2
111+
getBiasGyroY KEYWORD2
112+
getBiasGyroZ KEYWORD2
113+
getBiasAccelX KEYWORD2
114+
getBiasAccelY KEYWORD2
115+
getBiasAccelZ KEYWORD2
116+
getBiasCPassX KEYWORD2
117+
getBiasCPassY KEYWORD2
118+
getBiasCPassZ KEYWORD2
101119

102120
#######################################
103121
# Constants (LITERAL1)

library.properties

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name=SparkFun 9DoF IMU Breakout - ICM 20948 - Arduino Library
2-
version=1.2.9
2+
version=1.2.10
33
author=SparkFun Electronics <[email protected]>
44
maintainer=SparkFun Electronics <sparkfun.com>
55
sentence=Use the low-power high-resolution ICM 20948 9 DoF IMU from Invensense with I2C or SPI. Version 1.2 of the library includes support for the InvenSense Digital Motion Processor (DMP™).

0 commit comments

Comments
 (0)