correct SS pin setup is already handled by SPI subsystem. this should prevent future issues like #2868 current implementation assures that: * pin10 is OUTPUT HIGH if SPI.begin() is called and the pin was unconfigured * pin10 state is not modified if pinMode(10, OUTPUT) is called before SPI.begin() * pin10 is INPUT HI-Z if nor pinMode(10, OUTPUT) nor SPI.begin() are called
SD Library for Arduino
The SD library allows for reading from and writing to SD cards.
For more information about this library please visit us at http://arduino.cc/en/Reference/SD
License
Copyright (c) Arduino LLC. All right reserved.
This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA