Indoor Corgi / Mbed 2 deprecated NC64-BaseShield-SDCard

Dependencies:   SDFileSystem mbed

Files at this revision

API Documentation at this revision

Comitter:
IndoorCorgi
Date:
Sat Feb 11 02:28:09 2017 +0000
Parent:
0:efba1d05225d
Commit message:
Deleted not required comments.

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/main.cpp	Sat Feb 11 02:17:02 2017 +0000
+++ b/main.cpp	Sat Feb 11 02:28:09 2017 +0000
@@ -1,16 +1,12 @@
 #include "mbed.h"
 #include "SDFileSystem.h"
 
-//DigitalOut myled(LED1);
-//DigitalIn button(PC_13);
 Serial pc(USBTX, USBRX); 
-//SDFileSystem sd(PB_5, PB_4, PB_3, PA_8, "sd");
-//SDFileSystem sd(PB_15, PB_14, PB_13, PC_2, "sd");   // SPI2
 SDFileSystem sd(PA_7, PA_6, PA_5, PB_2, "sd");   // SPI1
 
 
 int main() {
-    pc.printf("Start\n");
+    pc.printf("\nStart\n");
     mkdir("/sd/testdir", 0777);
     FILE *fp = fopen("/sd/testdir/sdtest.txt", "w");
     if(fp == NULL) {
@@ -22,10 +18,5 @@
     printf("Finished\n");
     
     while(1) {
-        //myled = 1;
-        //pc.printf("TEST\n");
-        //wait(1);
-        //myled = 0;
-        //wait(1);
     }
 }