Arduino Yun and SPI

Good afternoon,

i'm new to Arduino and i have a new Yun to play with.
I try to use SPI without success.
If we look to schematic SPI pins are 8,9,10,11 but i cannot get them working at all
I'm connected on the 6 pins ICSP connector.
Now i'm wondering if there is need to change pins definitions somewhere in order to tell that is a Yun and not a Leonardo that have SPI pins in a different position.
I've tried to look and google but without luck

May somebody help me?

Thank you very much

Tullio

i have checked Arduino\hardware\arduino\avr\variants\leonardo\pins_arduino.h
it contains:
// Map SPI port to 'new' pins D14..D17 SS=17 MOSI=16 MISO=14 SCK=15
static const uint8_t SS = 17;
static const uint8_t MOSI = 16;
static const uint8_t MISO = 14;
static const uint8_t SCK = 15;

this sounds me wrong because CPU pins are different to me it should look as:

// Map SPI port to 'new' pins D8..D11
static const uint8_t SS = 8;
static const uint8_t MOSI = 10;
static const uint8_t MISO = 11;
static const uint8_t SCK = 9;

made the change but still SPI does not work

Any suggestion?

Thans

Tullio

The SPI pins on Yun and Leonardo is the same, afterall it is a standard ICSP connector.
The pins are not connected to other than the ICSP connector, like for example the Uno