File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
libraries/SD/examples/CardInfo Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change 10
10
** MOSI - pin 11 on Arduino Uno/Duemilanove/Diecimila
11
11
** MISO - pin 12 on Arduino Uno/Duemilanove/Diecimila
12
12
** 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
14
15
15
16
16
17
created 28 Mar 2011
17
18
by Limor Fried
19
+ modified 16 Mar 2011
20
+ by Tom Igoe
18
21
*/
19
22
// include the SD library:
20
23
#include < SD . h>
@@ -28,7 +31,7 @@ SdFile root;
28
31
// Arduino Ethernet shield: pin 4
29
32
// Adafruit SD shields and modules: pin 10
30
33
// Sparkfun SD shield: pin 8
31
- const int chipSelect = 8 ;
34
+ const int chipSelect = 4 ;
32
35
33
36
void setup ()
34
37
{
You can’t perform that action at this time.
0 commit comments