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 0:b453be3137c7, committed 2016-11-15
- Comitter:
- tmasrat
- Date:
- Tue Nov 15 13:04:32 2016 +0000
- Commit message:
- Cybersecurity project
Changed in this revision
diff -r 000000000000 -r b453be3137c7 SDFileSystem.lib --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/SDFileSystem.lib Tue Nov 15 13:04:32 2016 +0000 @@ -0,0 +1,1 @@ +http://developer.mbed.org/users/mbed_official/code/SDFileSystem/#8db0d3b02cec
diff -r 000000000000 -r b453be3137c7 main.cpp
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp Tue Nov 15 13:04:32 2016 +0000
@@ -0,0 +1,24 @@
+#include "mbed.h"
+#include "SDFileSystem.h"
+
+SDFileSystem original(p5, p6, p7, p22, "original");
+SDFileSystem duplicate(p11, p12, p13, p21, "duplicate");
+
+DigitalOut myled(LED1);
+
+int main() {
+ printf("Hello World!\n");
+
+ FILE *fp = fopen("/original/fun.txt", "r");
+ if(fp == NULL) {
+ error("Could not open file for read.\n");
+ }
+ int c;
+ while((c = fgetc(fp)) != EOF){
+ putchar(c);
+ }
+ fclose(fp);
+
+ printf("Goodbye World!\n");
+
+}
diff -r 000000000000 -r b453be3137c7 mbed.bld --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed.bld Tue Nov 15 13:04:32 2016 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/mbed_official/code/mbed/builds/9bcdf88f62b0 \ No newline at end of file