Don't move ver

Dependencies:   SDFileSystem mbed

Files at this revision

API Documentation at this revision

Comitter:
ponpoko1939
Date:
Mon Feb 26 06:34:49 2018 +0000
Commit message:
microSD???????

Changed in this revision

SDFileSystem.lib Show annotated file Show diff for this revision Revisions of this file
main.cpp Show annotated file Show diff for this revision Revisions of this file
mbed.bld Show annotated file Show diff for this revision Revisions of this file
diff -r 000000000000 -r 4377875e08d7 SDFileSystem.lib
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/SDFileSystem.lib	Mon Feb 26 06:34:49 2018 +0000
@@ -0,0 +1,1 @@
+http://os.mbed.com/users/simon/code/SDFileSystem/#603a8d2f4de5
diff -r 000000000000 -r 4377875e08d7 main.cpp
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Mon Feb 26 06:34:49 2018 +0000
@@ -0,0 +1,17 @@
+#include "mbed.h"
+#include "SDFileSystem.h"
+
+SDFileSystem sd(p5,p6,p7,p8,"sd");
+Serial pc(USBTX,USBRX);
+
+int main() {
+    pc.printf("Hello World\n");
+    
+    FILE *fp = fopen("/sd/test.txt", "r"); //ファイルを開く
+    if(fp == NULL) {
+        pc.printf("Could not open\n");
+    }
+    pc.printf("File Pointer fp is %d\n",fp);
+    fclose(fp); //ファイルを閉じる
+    free(fp);   //解放
+}
diff -r 000000000000 -r 4377875e08d7 mbed.bld
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Mon Feb 26 06:34:49 2018 +0000
@@ -0,0 +1,1 @@
+https://os.mbed.com/users/mbed_official/code/mbed/builds/5571c4ff569f
\ No newline at end of file