Use the QMC5883L library. The chip is not a clone, and not all HMC5883L sensor functions are available.
Don't forget to calibrate the sensor properly.
Use the QMC5883L library. The chip is not a clone, and not all HMC5883L sensor functions are available.
Don't forget to calibrate the sensor properly.