This message was posted on behalf of Intel Corporation
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:
- Edison Hardware Guide
- Edison Arduino Board Hardware Guide
- SparkFun Pi Block Schematic
- MRAA Documentation