n-Bed testing SD

Dependencies:   SDFileSystem mbed

Fork of SDFileSystem_HelloWorld by mbed official

Files at this revision

API Documentation at this revision

Comitter:
chalikias
Date:
Thu Jan 22 18:31:27 2015 +0000
Parent:
0:bdbd3d6fc5d5
Commit message:
works

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/main.cpp	Fri Dec 07 11:25:01 2012 +0000
+++ b/main.cpp	Thu Jan 22 18:31:27 2015 +0000
@@ -1,7 +1,9 @@
+//N.C. testing n-bed SD-CARD
+
 #include "mbed.h"
 #include "SDFileSystem.h"
- 
-SDFileSystem sd(p5, p6, p7, p8, "sd"); // the pinout on the mbed Cool Components workshop board
+ //mosi miso sck cs
+SDFileSystem sd(p11, p12, p13, P3_25, "sd"); // n-bed on board SD-CARD
  
 int main() {
     printf("Hello World!\n");   
@@ -12,8 +14,8 @@
     if(fp == NULL) {
         error("Could not open file for write\n");
     }
-    fprintf(fp, "Hello fun SD Card World!");
+    fprintf(fp, "Hello n-bed SD Card ");
     fclose(fp); 
  
-    printf("Goodbye World!\n");
+    printf("Goodbye n-bed World!\n");
 }