Hi xtemps,
I found an example sketch on GitHub using the following link: https://github.com/jrowberg/i2cdevlib
I located this site after searching for more information about the HMC5883L chip used to build the MeCompass block (refer to MeCompass electronic module Wiki information).
More information on the use of the I2Cdev library is located in the Readme file for I2Cdev on GitHub. I followed the developer’s recommendations to be sure I installed the library files correctly. I then opened up, and compile, the example sketch: HMC5883L_raw.ino.
Note: It took me a couple of iterations, because I initially copied the library files to the incorrect location. It was obvious from the compiler errors that it couldn’t find the libraries. The Arduino.cc website explained how to correct the errors by using the manual library installation method.
After successfully compiling the above sketch, it downloaded and ran first on an Arduino Uno, with the MeCompass module attached to Port 4, of the MeArduino Shield that I installed on the Uno. I next ran the same code on the Makeblock Me Orion board, again with the MeCompass module connected to Port 4. (The other available color-coded ports also worked with the MeCompass.)
I hope this information helps. Along with the information provided in the Makeblock Wiki about the MeCompass, the manufacturer’s data sheets, and the I2Cdev library for the HMC5883L chip, I think it does just about everything I expected it to do.
Best regards,
moveover