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: EthernetInterface SDFileSystem mbed-rtos mbed
main.cpp
- Committer:
- micbio
- Date:
- 2016-12-03
- Revision:
- 0:1649f66cf32a
- Child:
- 1:58d2021e301d
File content as of revision 0:1649f66cf32a:
#include "mbed.h"
#include "SDFileSystem.h"
SDFileSystem sd(p11, p12, p13, p10, "sd");
int main() {
while(1) {
FILE *fp = fopen("/sd/testfile.txt", "a");
fprintf(fp, "hello world!\n");
fclose(fp);
wait(1);
}
}