SPI custom pins

Hello,
I wanted to ask if it was possible to remap the pins used for SPI communication. In other words, I would like to have e.g. the SCK assigned to pin 10 and CS to pin 13.
I naively tried modifying the pins_arduino.h file:

const static uint8_t SS = 13;
const static uint8_t MOSI = 11;
const static uint8_t MISO = 12;
const static uint8_t SCK = 10;

but this seemed to do nothing. Am I missing something? This is driving me crazy.

Davide

No, SPI is a hardware feature bound to certain pins.

You can use shiftIn() and shiftOut() to get similar functionality and they can be used with any pins.


Rob

Graynomad,
thank you so much, it is thanks to people like you this community is so much fun and hassle free as it is.
Good night,
davide