Pages: [1]   Go Down
Author Topic: Change SPI ports  (Read 358 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 6
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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
Logged

Global Moderator
Offline Offline
Brattain Member
*****
Karma: 485
Posts: 18810
Lua rocks!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

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.
Logged


Global Moderator
Offline Offline
Brattain Member
*****
Karma: 485
Posts: 18810
Lua rocks!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

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


Pages: [1]   Go Up
Jump to: