so I changed it to LSM6DS3 myIMU anв now error is error: 'LSM6DS3' does not name a type; did you mean 'LSM6DS3Class'?, but I checked constructor and its an example ```
LSM6DS3 myIMU; //Default constructor is I2C, addr 0x6B
#include <Arduino_LSM6DS3.h>
void setup() {
Serial.begin(9600); // initialize serial bus (Serial Monitor)
while (!Serial); // wait for serial initialization
Serial.print("LSM6DS3 IMU initialization ");
if (IMU.begin()) { // initialize IMU
Serial.println("completed successfully.");
} else {
Serial.println("FAILED.");
IMU.end();
while (1);
}
Serial.println();
}
void loop() {
char buffer[8]; // string buffer for use with dtostrf() function
float ax, ay, az; // accelerometer values
float gx, gy, gz; // gyroscope values
// Retrieve and print IMU values
if (IMU.accelerationAvailable() && IMU.gyroscopeAvailable()
&& IMU.readAcceleration(ax, ay, az) && IMU.readGyroscope(gx, gy, gz)) {
Serial.print("ax = "); Serial.print(dtostrf(ax, 4, 1, buffer)); Serial.print(" g, ");
Serial.print("ay = "); Serial.print(dtostrf(ay, 4, 1, buffer)); Serial.print(" g, ");
Serial.print("az = "); Serial.print(dtostrf(az, 4, 1, buffer)); Serial.print(" g, ");
Serial.print("gx = "); Serial.print(dtostrf(gx, 7, 1, buffer)); Serial.print(" °/s, ");
Serial.print("gy = "); Serial.print(dtostrf(gy, 7, 1, buffer)); Serial.print(" °/s, ");
Serial.print("gz = "); Serial.print(dtostrf(gz, 7, 1, buffer)); Serial.println(" °/s");
}
delay(1000); // wait one second between readings
}
and error is avrdude: WARNING: invalid value for unused bits in fuse "fuse5", should be set to 1 according to datasheet
This behaviour is deprecated and will result in an error in future version
You probably want to use 0xcd instead of 0xc9 (double check with your datasheet first).