test

Dependencies:   SDFileSystem mbed

Fork of SDFileSystem_HelloWorld by mbed official

Files at this revision

API Documentation at this revision

Comitter:
martinsimpson
Date:
Thu Oct 19 10:13:52 2017 +0000
Parent:
3:b97a5c596320
Commit message:
First Commit

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
diff -r b97a5c596320 -r 73d5d4c507c9 main.cpp
--- a/main.cpp	Thu Oct 05 10:50:15 2017 +0000
+++ b/main.cpp	Thu Oct 19 10:13:52 2017 +0000
@@ -1,8 +1,22 @@
 #include "mbed.h"
 #include "SDFileSystem.h"
  
+
+//SDFileSystem sd(mosi, miso, sclk, cs, "sd");
+
 SDFileSystem sd(D11, D12, D13, D10, "sd"); // the pinout on the mbed Cool Components workshop board
 
+/* on the Break out Module
+    G   = GND           goes to         GND 0V
+    DO  = Digital Out   goes to MISO    D12
+    CLK = Clock         goes to SCLK    D13
+    DI  = Digital In    goes to MOSI    D11
+    CS  = Chip Select   goes to CS      D10
+    +   = +ve supply    goes to         3V3 Check! Slider switch on SD side is set to 3V3
+*/
+//    FILE *fp = fopen("/sd/mydir/sdtest.txt", "w");//Open device "sd" with a folder "mdir" of root on the SD card
+
+
 char myStr[128];
 
 int main() {