Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
9 years ago.
How to use with SD card
Hi, I have a file on my SD card "config.txt" that I would like to read from (not using the local filesystem as in your example).
I can't work out what to change in the example to read from the SD card instead of the local filesystem.
Can anyone provide some guidance please?
Question relating to:
2 Answers
9 years ago.
Short version: Change
LocalFileSystem local("local");
to
SDFileSystem sdCard(SD_MOSI , SD_MISO , SD_CLK , SD_nCS , "local");
where SD_MOSI, SD_MISO, SD_CLK & SD_nCS are the pins used for those signals on your board.
9 years ago.
Hi Glendon,
Please have a look at this page: https://developer.mbed.org/cookbook/SD-Card-File-System
and let us know if you need more guidance.
Cheers Miloje