18float accelBias[3] = {0.0, 0.0, 0.0};
19float gyroBias[3] = {0.0, 0.0, 0.0};
28 Serial.println(
"ax ay az gx gy gz temp");
34 hat.icm42670.startWithDefaultValues();
35 hat.icm42670.calibrateAccel(accelBias);
36 hat.icm42670.calibrateGyro(gyroBias);
41 float ax, ay, az, gx, gy, gz, t;
44 hat.icm42670.readSensorData(ax, ay, az, gx, gy, gz, t);
55 Serial.print(ax); Serial.print(
' ');
56 Serial.print(ay); Serial.print(
' ');
57 Serial.print(az); Serial.print(
' ');
58 Serial.print(gx); Serial.print(
' ');
59 Serial.print(gy); Serial.print(
' ');
60 Serial.print(gz); Serial.print(
' ');
Main interface for accessing TKJHAT board features.
void begin()
Initialize all peripherals on the HAT Also initializes the default I2C bus for sensors and display.