SPI - Pin13 in conflict: LED vs. SCLK

A thing I found playing with the SPI configuration is that SCLK(defined in the file pins_arduino.h) uses pin 13, but this is also the board's programmable LED pin... If I change SCLK pin to, say, 9 will it work? I think not...

Regards!

If I change SCLK pin to, say, 9 will it work?

No. SPI is hard-wired to specific pins. 9 is not one of them.

First definition was in line 20:
#define SPI_CLOCK_DIV64 0x02

Second definition in line 25:
#define SPI_CLOCK_DIV64 0x07

topic is discussed more often on the forum, there was some bug see - http://arduino.cc/forum/index.php/topic,46880.0.html -

Thank you all!

Anyway, loosing the programmable led isn't a good thing. Hope the next version of Arduino board will fix it. :wink: