Go Down

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

ollig

Hi,

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?

TIA

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.
Please post technical questions on the forum, not by personal message. Thanks!

More info:
http://www.gammon.com.au/electronics

Nick Gammon

Some people have done software SPI implementations, you might need that if you are desperate to change pin functions.
Please post technical questions on the forum, not by personal message. Thanks!

More info:
http://www.gammon.com.au/electronics

Go Up