I am trying to enable “significant motion detection” on the LSM6DSO. It requires you to write several values to different registers.
Following the steps in the application guide, one of the writes is to send 0x80 to the PAGE_RW register. Here is the code…
uint8_t regVal = 0x00;
status_t readReg = myIMU.readRegister(®Val, PAGE_RW);
Serial.print("PAGE_RW before... ");
Serial.println(regVal, BIN);
writeError = myIMU.writeRegister(PAGE_RW, 0x80);
if (writeError != 0x00) {
Serial.println("writeError.IMU_SUCCESS != 0x00 for PAGE_RW");
return false;
}
delay(5000);
readReg = myIMU.readRegister(®Val, PAGE_RW);
Serial.print("PAGE_RW after... ");
Serial.println(regVal, BIN);
The output is…
PAGE_RW before… 10000010
PAGE_RW after… 10000010
Has anyone ever been able to get this to work? I am following the guide on page 60 of the application notes.
Thanks
Tim