As far as i know this should just work ok on Galileo as Galileo has the same pin mapping as Uno.
No, there is no special pins reserved for SD, Wifi, Ethernet or USB host on Galileo, these just come as extra components that are built in and therefore dont need any Arduino pins to be used.
Galileo libraries are written in basic linux user space C/C++ code so just search on the web for what you want to do to replace and AVR specific code with a Galileo code.
can you point us at the exact shield, sketch and library you are using and we will see whats wrong here?
Thanks for your post Ado.
The shield we are using is CANdiy and you can test with the original library they have at Github:
For the electricity on tap project we are using a different library, a customized version of the Seedstudio CAN library:
If you do not have access to a CAN shield we can make our system available for remote access and let you run a simple example on a MEGA board for reference. I have extra CAN shields that can lend as well.
Some more information:
My CAN test program for the CANdiy shield started working after I hard coded SPICS pin to 5. The original library has the following code:
#if defined(__AVR_ATmega128__) || defined(__AVR_ATmega1280__) || defined(__AVR_ATmega2560__)
#define SPICS 5
What is the proper way to define Galileo in the above statement so that the Pin selection is automated by the compiler ?
I tested the two options I found on these discussions and the right one turned out to be ARDUINO_LINUX from the MACROs discussion - thanks Carlos
In the current IDE for Galileo if you need to detect if you are compiling for a Galileo board and adjust the code you can do:
-> Galileo specific code goes here