Nano IOT Can't change Accelerometer Full Scale Range

I edited the Arduino_LSM6DS3 library and can change the sample rate from 104 Hz to 208Hz, but for some reason I am unable to get the full scale range to change from the default 4g. The default line in the library is:

writeRegister(LSM6DS3_CTRL1_XL, 0x4A);

I change this to:

writeRegister(LSM6DS3_CTRL1_XL, 0x5E);

I'm a novice, but according to the Datasheet for the LSM6DSOX, it seems to me this should change the data rate to 208Hz and the full scale range of the accelerometer to 8g, but only the data rate changes. No matter what I put for bits FS0_XL and FS1_XL, the full scale range remains at 4g.

Help please!

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.