sparkfun/SparkFun_LSM9DS1_Arduino_Library

Incorrect I2C address for magnetometer

kyle-kelly opened this issue · 1 comments

According to the Table 20 of the LSM9DS1 datasheet, Line 36 in your file SparkFunLSM9DS1.h should be changed to

#define LSM9DS1_M_ADDR(sa1) ((sa1) == 0 ? 0x1C : 0x3C)

This change should propagate through the rest of your documentation.

Sorry, didn're realize <wire.h> uses a 7-bit address.