Upload files to "Pimoroni_icm20948"
This commit is contained in:
parent
1402907930
commit
0cd1106609
@ -6,6 +6,7 @@
|
|||||||
|
|
||||||
ICM_20948_I2C myICM;
|
ICM_20948_I2C myICM;
|
||||||
|
|
||||||
|
|
||||||
// Magnetometer calibration variables
|
// Magnetometer calibration variables
|
||||||
float mag_min_x = 1000, mag_max_x = -1000;
|
float mag_min_x = 1000, mag_max_x = -1000;
|
||||||
float mag_min_y = 1000, mag_max_y = -1000;
|
float mag_min_y = 1000, mag_max_y = -1000;
|
||||||
@ -54,6 +55,9 @@ void setup() {
|
|||||||
delay(500);
|
delay(500);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
delay(2000);
|
||||||
|
|
||||||
|
|
||||||
SERIAL_PORT.println("ICM-20948 Initialized.");
|
SERIAL_PORT.println("ICM-20948 Initialized.");
|
||||||
calibrateMagnetometer();
|
calibrateMagnetometer();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user