Go Down

Topic: Change Ethernet SPI Slave Select PIN. (Read 680 times) previous topic - next topic

NobleNoob

I would like to know where I can change the slave select pin values for the ethernet shield and sd card in the libraries.

I would like to alternate pins than the defaults.

I know about keeping the NSS pin as output, 10/53..

Thanks :)


robtillaart

<WARANTY WARNING!>

you can bend the SS pins of the shield a bit and connect it to any other. By far the easiest way and if done carefully it can be undone too.

<WARANTY WARNING!>

Be sure the ethernet shield is the top shield :)
Rob Tillaart

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

NobleNoob

I found where to change the sd card pin in 'Sd2PinMap.h'
uint8_t const SS_PIN = 53;

I can't seem to find where to change it in the ethernet library

robtillaart


try - C:\Program Files (x86)\arduino-1.0\libraries\Ethernet\utility\w5100.h - [windows path] - at the end there is a hardcoded initSS() depending on the MCU.
Rob Tillaart

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

Go Up