I have followed a tutorial to create a tilt compensated compass using the HMC5883L compass and the ADXL345 accelerometer. Both are stored as variables.
Is it possible to define them as a complete unit? ie if I was using the following in my code
#define compassAddress 0x32 >> 1
How do i go about assigning both components a single address to reference from that address.
Excuse the terminology, it may be incorrect. I did a lot of googling trying to find an answer but realised I dont even know how to ask the question :) Hopefully it will make sense to someone