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: MCP23017 SDFileSystem USBDevice WattBob_TextLCD mbed
Diff: Function.h
- Revision:
- 10:6e50e26d258b
- Parent:
- 9:539c51b7db52
diff -r 539c51b7db52 -r 6e50e26d258b Function.h
--- a/Function.h Fri Feb 21 09:39:59 2014 +0000
+++ b/Function.h Fri Feb 21 09:42:24 2014 +0000
@@ -183,21 +183,15 @@
}
void LogFile(){
+ printf("Hello World!\n");
+
mkdir("/sd/mydir", 0777);
- FILE *fp = fopen("/sd/mydir/sdtest.txt", "w");
+
+ FILE *fp = fopen("/sd/mydir/sdtest.txt", "w");
if(fp == NULL) {
- //Write_LCD("SD Card Error",0,0,1);
error("Could not open file for write\n");
}
- if( Freq<1200 && Freq>400)
- sprintf(Temp, "%d", Freq);
- else
- Temp[0]='E';
- Temp[1]='r';
- Temp[2]='r';
- fprintf(fp,"%d , %s , %s , %s , %d , %s , %d , %s , %d , %s , %d"
-,LogTimer.read()," , ",Temp," , ",Swch1," , ",Swch2," , ",Analug1_valu[4]," , ",Analug2_valu[4]);
-
+ fprintf(fp, "Hello fun SD Card World!");
fclose(fp);
printf("Goodbye World!\n");