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: FatFileSystem MSCFileSystem mbed
Fork of app-board-LocalFileSystem by
main.cpp
- Committer:
- chris
- Date:
- 2013-04-18
- Revision:
- 2:d2b00172588d
- Parent:
- 1:00053ea8a833
File content as of revision 2:d2b00172588d:
#include "mbed.h"
#include "MSCFileSystem.h"
AnalogIn pot1(p19);
DigitalOut myled(LED1);
MSCFileSystem fs("fs");
int main()
{
FILE *fp = fopen("/fs/data.csv","w");
for (int i=0; i < 100 ; i++) {
fprintf(fp,"%.2f\n",pot1.read());
wait(0.05);
myled = !myled;
}
fclose(fp);
myled = 1;
}
