Skip to content

Commit df00d3e

Browse files
committed
changed CS pin on CardInfo example to make it consistent with other SD examples
1 parent d59fcb8 commit df00d3e

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

libraries/SD/examples/CardInfo/CardInfo.pde

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,14 @@
1010
** MOSI - pin 11 on Arduino Uno/Duemilanove/Diecimila
1111
** MISO - pin 12 on Arduino Uno/Duemilanove/Diecimila
1212
** CLK - pin 13 on Arduino Uno/Duemilanove/Diecimila
13-
** CS - depends on your SD card shield or module
13+
** CS - depends on your SD card shield or module.
14+
Pin 4 used here for consistency with other Arduino examples
1415
1516
1617
created 28 Mar 2011
1718
by Limor Fried
19+
modified 16 Mar 2011
20+
by Tom Igoe
1821
*/
1922
// include the SD library:
2023
#include <SD.h>
@@ -28,7 +31,7 @@ SdFile root;
2831
// Arduino Ethernet shield: pin 4
2932
// Adafruit SD shields and modules: pin 10
3033
// Sparkfun SD shield: pin 8
31-
const int chipSelect = 8;
34+
const int chipSelect = 4;
3235

3336
void setup()
3437
{

0 commit comments

Comments
 (0)