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.
Diff: main.cpp
- Revision:
- 0:28e93e0b9f05
diff -r 000000000000 -r 28e93e0b9f05 main.cpp
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp Tue Apr 06 14:09:54 2010 +0000
@@ -0,0 +1,20 @@
+#include "mbed.h"
+#include "MSCFileSystem.h"
+
+AnalogIn ain (p20);
+DigitalOut myled(LED1);
+//LocalFileSystem fs ("fs");
+MSCFileSystem fs("fs");
+
+int main() {
+
+ FILE *fp = fopen("/fs/data.csv","w");
+
+ for (int i = 0; i < 100 ; i++) {
+ fprintf(fp,"%.2f\n",ain.read());
+ wait (0.1);
+ }
+
+ fclose(fp);
+ myled=1;
+}