Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: SDFileSystem mbed
Fork of STMNucleoF401RE_ExampleCode_04_SDcard_Fi by
main.cpp
- Committer:
- STmdangelo
- Date:
- 2016-10-19
- Revision:
- 3:221bcfbe120b
- Parent:
- 2:09d6c35ac28c
File content as of revision 3:221bcfbe120b:
/**************************************************** * FAST PROTOTYPING WITH NUCLEO * * Example Code 04: SDcard * * Author: Mauro D'Angelo * * Organization: STMicroelectronics * *****************************************************/ #include "mbed.h" #include "SDFileSystem.h" SDFileSystem sd(D11, D12, D13, D4, "sd");// MOSI, MISO, SCK, CS int main() { FILE *fd = fopen("/sd/mbed.txt","w"); fprintf(fd,"Welcome SD!!\n"); fclose(fd); } // mkdir("/sd/log", 0777);