Erik - / Mbed 2 deprecated SDFileSystem_RTOS_HelloWorld

Dependencies:   SDFileSystem-RTOS mbed-rtos mbed

Files at this revision

API Documentation at this revision

Comitter:
Sissors
Date:
Sat Mar 15 22:23:36 2014 +0000
Parent:
1:bce8311b4547
Commit message:
Added pinout comments

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/main.cpp	Sun Jan 05 10:22:10 2014 +0000
+++ b/main.cpp	Sat Mar 15 22:23:36 2014 +0000
@@ -15,8 +15,9 @@
 #include "rtos.h"
 #include "SDFileSystem.h"
  
-DigitalOut SD_EN(PTE3);                         // Enable signal for SD Card
-SDFileSystem sd(PTD6, PTD7, PTB11, PTE5, "sd"); // The pinout on the Wi-Go2 module
+DigitalOut SD_EN(PTE3);                         // Enable signal for SD Card, specific to Wi-Go2, most SD-card boards do not have this pin
+                                                // In that case you can remove it, or assign it to a random pin you are not using
+SDFileSystem sd(PTD6, PTD7, PTB11, PTE5, "sd"); // The pinout on the Wi-Go2 module (MOSI, MISO, SCLK, CS)
 
 unsigned int buffer1[100];
 unsigned int buffer2[100];