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.
main.cpp
00001 #include "mbed.h" 00002 #include "SDFileSystem.h" 00003 00004 //SDFileSystem sd(p11, p12, p13, p27, "sd"); 00005 SDFileSystem sd(p5, p6, p7, p8, "sd"); 00006 00007 int main() { 00008 printf("Hello World!\n"); 00009 00010 FILE *fp = fopen("/sd/sdtest.txt", "w"); 00011 if(fp == NULL) { 00012 error("Could not open file for write\n"); 00013 } 00014 fprintf(fp, "Hello fun SD Card World!"); 00015 fclose(fp); 00016 00017 printf("Goodbye World!\n"); 00018 }
Generated on Wed Jul 13 2022 03:35:30 by
1.7.2