Setting SS high by default.

This should prevent conflicts between an SPI device using the hardware SS pin (which previously would have been enabled by default) and another SPI device using another pin for its SS.  It might be better to move the SPI initialization to begin(), which could then be called by the hardware devices which could then disable themselves.
This commit is contained in:
David A. Mellis 2010-08-03 16:13:44 +00:00
parent e4b255acb9
commit 1e0f968387
1 changed files with 1 additions and 1 deletions

View File

@ -27,7 +27,7 @@ SPIClass::SPIClass()
digitalWrite(SCK, LOW);
digitalWrite(MOSI, LOW);
digitalWrite(SS, LOW);
digitalWrite(SS, HIGH);
SPCR = _BV(SPE) | _BV(MSTR);