4
2.
Your data logging shield uses chipSelect 10 instead of chipSelect 4. Change line 36 in the
sketch to:
const int chipSelect = 10;
IMPORTANT
The ATmega2560-based MEGA compatible (e.g. WPB101) and ATmega32u4-based Leonardo
compatible (e.g. WPB103) development boards do not use the same hardware SPI pin-out. If
you are using one of these boards, please specify the pins used for SPI communication with
the SD card. For the VMA202, these are pins 10, 11, 12 and 13.
In the CardInfo sketch, modify line:
while (!card.init(SPI_HALF_SPEED, chipSelect)) {
to:
while (!card.init(SPI_HALF_SPEED,1,11,12,13)) {