Go Down

Topic: SPI - Pin13 in conflict: LED vs. SCLK (Read 2332 times) previous topic - next topic


Sep 07, 2011, 12:49 pm Last Edit: Sep 08, 2011, 02:16 pm by CowBoy Reason: 1
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...



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 -
Rob Tillaart

Nederlandse sectie - http://arduino.cc/forum/index.php/board,77.0.html -
(Please do not PM for private consultancy)


Sep 08, 2011, 02:12 pm Last Edit: Sep 08, 2011, 02:22 pm by CowBoy Reason: 1
Thank you all!

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

Go Up