I'm trying to connect HMC5883L sensor with SparkFun Pi block and have no idea how to start!
Language : Python
MP : Intel Edison
Breakout Board : Sparkfun Pi block : mraa
I'm not familiar with the SparkFun blocks, but if the current issue is related to code translation for GPIO usage, then the best recommendation is to check the MRAA documentation for Python in this site: https://iotdk.intel.com/docs/master/mraa/python/
Basically, what it's needed here is a correct pin mapping. This can be done by checking the Edison hardware guide, the SparkFun Pi schematic and the MRAA documentation so that you can understand how the Edison's pins are mapped by the MRAA library. Once you have understood this, you can try translating and adapting the code.
Please check the following resources, they will help you to accomplish your goal: