Datasheet
Using the SD Card
Once you have your Feather working, you probably want to rock out with some SD card reading and writing!
Luckily, the Arduino IDE has an SD card library that works great, and it even comes with the IDE!
You can start with CardInfo which is very detailed
Luckily many of the default examples already have chipSelect = 4 For other sketches, do check to make sure that
CS is set to 4! The SD card uses hardware SPI for the remaining pins.
Make sure you have Adafruit SAMD board package version 1.6.2 or higher, so that Serial debug data goes
out on Serial not SerialUSB!
One done, upload & open up the serial console and you'll get all this info including a list of files
Note that it may not print out the files, thats because the example root.ls(LS_R | LS_DATE | LS_SIZE) expects to
print to Serial rather than SerialUSB.
If you want to list the files, use listFiles example
Once you have that working, check out the other examples, such the Datalogger example (saving analog data to
© Adafruit Industries https://learn.adafruit.com/adafruit-feather-m0-adalogger Page 39 of 47










