Author Topic: Make sure to use the correct "chipSelect" value  (Read 1826 times)

RFadmin

  • Administrator
  • *****
  • Posts: 77
  • Karma: +9/-2
    • View Profile
Make sure to use the correct "chipSelect" value
« on: November 03, 2013, 04:32:34 PM »
Hi Everyone,

When using the SD examples, please make sure to use the correct chipSelect value. The microSD shield uses GPIO 6 for the chip select.

Change
const int chipSelect = 4;
to
const int chipSelect = 6; // this is the correct value.

In the examples that don't have a chipSelect int:
Change
!SD.begin(4)
to
!SD.begin(6) // this is the correct value.

 

anything