sparkfun / SparkFun_LSM9DS1_Arduino_Library

Arduino library for the LSM9DS1 9DOF IMU.
Other
64 stars 78 forks source link

Incorrect I2C address for magnetometer #14

Closed kyle-kelly closed 7 years ago

kyle-kelly commented 7 years ago

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.

kyle-kelly commented 7 years ago

Sorry, didn're realize uses a 7-bit address.