An Implementation of the Arduino/Sparkfun SD Card Library for the Particle Photon.
This library is a fork of the Spark Core SD library. The code has been modified so that it will compile for the Particle Photon by following these instructions in this forum post solution.
In my circuits I use Adafruit's microSD card breakout board so I've included both sets of pin configurations.
Blank cells indicate that you ought to configure you hardware and softwae to use the functionality they match to (card detect and 5V). Card detect is not supported by 'naked' SD cards, but is supported on the breakout board.
SD Card | Breakout | Photon |
---|---|---|
n/a | CD | |
SS | CS | A2 |
MOSI | DI | A5 |
MISO | DO | A4 |
SCK | CLK | A3 |
GND | GND | GND |
VCC | 3V | 3V |
n/a | 5V |
I've got a potentiometer wired in A0 in this circuit. Not this has no impact on the SD card and is specific to my project.