Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
10 years, 8 months ago.
Code appears to be for the HMC5843
The definitions in HMC5883.h are for the HMC5843 magnetometer chip rather than for the HMC5883L. The output rates are different, and the HMC5883L has data in X, Z, Y order rather than X, Y, Z order. There are various other differences that could lead to peculiar behavior if this code is used with the HMC5883L chip.