mirror of
https://github.com/esp8266/Arduino.git
synced 2025-06-16 11:21:18 +03:00
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:
@ -27,7 +27,7 @@ SPIClass::SPIClass()
|
||||
|
||||
digitalWrite(SCK, LOW);
|
||||
digitalWrite(MOSI, LOW);
|
||||
digitalWrite(SS, LOW);
|
||||
digitalWrite(SS, HIGH);
|
||||
|
||||
SPCR = _BV(SPE) | _BV(MSTR);
|
||||
|
||||
|
Reference in New Issue
Block a user