SODAQ NB-IoT working in Portugal+Newbie question about Adafruit LSM303 library

Hi all,
First of all thanks for building the NB-IoT Shield. It was easy to setup the “AT Passthrough sketch”.
Now I would like to work with the Accelerometer NB-IoT shield, so I downloaded the Adafruit LSM303 library like it says in http://support.sodaq.com/sodaq-one/nb-iot_tutorials/

But then it says:

Update the I2C addresses inside the library to:
/*=========================================================================
_ I2C ADDRESS/BITS_
_ -----------------------------------------------------------------------/_
_ #define LSM303_ADDRESS_ACCEL (0x1D) // 0011001x_
_ #define LSM303_ADDRESS_MAG (0x1E) // 0011110x_
_/
=========================================================================*/_

Is there any page that explains how to do this? (Sorry if this is very newbie)

Thanks!

Please find the arduino library directory. I use a Mac and it’s in ~/Documents/Arduino/Library. Windows is diffferent. There should be an AdafruiLSM303 directory containing the file Adafruit_LSM303U.h

change the following in this file:

/=================================== original =======================
I2C ADDRESS/BITS
-----------------------------------------------------------------------
#define LSM303_ADDRESS_ACCEL (0x32 >> 1) // 0011001x
#define LSM303_ADDRESS_MAG (0x3C >> 1) // 0011110x
=========================================================================
/

/=====================================for NB-IoT shield =======================
I2C ADDRESS/BITS
-----------------------------------------------------------------------
/
#define LSM303_ADDRESS_ACCEL (0x1D) // 0011001x
#define LSM303_ADDRESS_MAG (0x1E) // 0011110x
/=========================================================================/

Thanks Karmiel, that solved it.