Intro: Adafruit / Sparkfun MicroSD Breakout and Arduino Micro
This is a quick tutorial showing how to hookup the Sparkfun microSD card breakout to an arduino Micro.
You can use the code found on this page: MicroSD Breakout With Level Shifter Hookup Guide
The example provided by Sparkfun shows how to hook it up with an Arduino UNO, so I decided to create this short tutorial how to hook the microSD card to an Arduino Micro as the pins arrangement and their labels on the Micro are little bit confusing.
The wiring is as in the Fritzing sketch attached.
in the code double check you are connected to the same pins as declared:
const uint8_t chipSelect = 8 (CS on the brekout);
const uint8_t cardDetect = 9 (CD on the breakout);
full working code is also attached below.