I got two libraries for HMC5883L A & B. A used compass.begin() and with functions such as: compass.setOffset(0, 0); to set compass calibration offset.
B used compass.initialize(); , with function such as: compass.getHeading(&mx, &my, &mz);.
How to use B with the function of compass.setOffset(0, 0);
OR use A with the function of : compass.getHeading(&mx, &my, &mz);.
I'd tendency to use B. Do I have to edit the library like to copy class from A to B?