Just bought two LSM303Ds and trying to read them both at the same time in the Arduino environment (set at 0x1D and 0x1E). Has anyone got any example code that does this in Arduino environment? They are both connected and can see them on a i2c scanner but cant unpick the standard lsm303 code to interrogate both.
This will be controlled by whatever library you’re using to run the board with Arduino. Usually when you instantiate it (e.g. LSM303D sensor;) there’s an option to specify the address.
Thanks @Shoe I would have never figured that out. Saved that info for future reference though in case I ever get back to tinkering with my Arduino’s. =)