Community
cancel
Showing results for 
Search instead for 
Did you mean: 
DChha
Beginner
951 Views

HMC5883L sensor with SparkFun Pi block : mraa

0down votehttps://stackoverflow.com/questions/46843539/hmc5883l-sensor-with-sparkfun-pi-block favorite

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

0 Kudos
2 Replies
DChha
Beginner
30 Views

ps : my 12cdetect is working well! at 10xe or ex10 (basically column e and row 10), i get a '1e'

 

but need help with converting my rpi.gpio based code to mraa based code !
idata
Community Manager
30 Views

Hi dimpy,

 

 

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:I hope you find this information useful.

 

 

Regards,

 

Diego V.
Reply