Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: SDFileSystem mbed
Revision 1:e8bf714e4ab6, committed 2017-02-11
- 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);
}
}