SPI interface compatibility

Hi, im looking for a SPI interface that is as most compatible with all Arduino boards.
So once i can stick my self made shield on a Arduino UNO and the other day on a Yun and maybe the third on a Mega.
Wich connection is the best therefor?
thanks
novski

SPI interface to what? There has to be something at the other end of the wires.


Rob

I would guess you'd want a 2x3 female mounted on the bottom of your shield that would mount on the male pins of the ICSP header on the other boards.
I don't know if Yun use 0/5V SPI signals as the Uno and Mega do. Or if it has an ICSP header in the same place.
If you look at one the shields - Wifi? Ethernet? - you can see the header.
Your other option is to connect to the signals from the headers, D11-D12-D13-Reset-Power-Gnd for an Uno, D50-51-52 (maybe 51-52-53?)-Reset-Power-Gnd for a Mega, and I don't know what for a Yun. Then you don't need the underneath header.

Or put some holes in the board near the shield ICSP header and the board edge headers, and allow user to run jumpers as needed to connect to the needed places by board type.