Go Down

Topic: Change SPI ports (Read 376 times) previous topic - next topic



I wounder if it's enough changing the port declarations in pins_arduino.h to get an interchange of pin 13 and 10 (SlaveSelect <-> Clock) when using the SPI library, especially for the clock pin?


Nick Gammon

No. The pins functions are set in the hardware. Changing the .h file will only make the library malfunction (or possibly have no effect at all).
You can assign any pins you like as slave select (at the master end) however pin 10 must be configured as an output.

Nick Gammon

Some people have done software SPI implementations, you might need that if you are desperate to change pin functions.

Go Up