From 42039ecd196d0a069f45f20e8a6b31777a699543 Mon Sep 17 00:00:00 2001 From: Tom Igoe Date: Wed, 16 Mar 2011 13:53:39 -0400 Subject: [PATCH] changed CS pin on CardInfo example to make it consistent with other SD examples --- libraries/SD/examples/CardInfo/CardInfo.pde | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/libraries/SD/examples/CardInfo/CardInfo.pde b/libraries/SD/examples/CardInfo/CardInfo.pde index f81e21d17..7abfd33e4 100644 --- a/libraries/SD/examples/CardInfo/CardInfo.pde +++ b/libraries/SD/examples/CardInfo/CardInfo.pde @@ -10,11 +10,14 @@ ** MOSI - pin 11 on Arduino Uno/Duemilanove/Diecimila ** MISO - pin 12 on Arduino Uno/Duemilanove/Diecimila ** CLK - pin 13 on Arduino Uno/Duemilanove/Diecimila - ** CS - depends on your SD card shield or module + ** CS - depends on your SD card shield or module. + Pin 4 used here for consistency with other Arduino examples created 28 Mar 2011 by Limor Fried + modified 16 Mar 2011 + by Tom Igoe */ // include the SD library: #include @@ -28,7 +31,7 @@ SdFile root; // Arduino Ethernet shield: pin 4 // Adafruit SD shields and modules: pin 10 // Sparkfun SD shield: pin 8 -const int chipSelect = 8; +const int chipSelect = 4; void setup() {