Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
8 years ago.
Library "MSCFilesystem" misses "FATFilesystem.h"
Error: Cannot open source input file "FATFileSystem.h": No such file or directory in "MSCFileSystem/MSCFileSystem.h", Line: 11, Col: 28
#include "mbed.h"
#include "MSCFileSystem.h"
#define WAIT_time 0.20
#define D() wait(WAIT_time)
DigitalOut mled0(LED1);
DigitalOut mled1(LED2);
DigitalOut mled2(LED3);
DigitalOut mled3(LED4);
AnalogIn Ain(p20);
MSCFileSystem fs("fs");
int main() {
FILE *fp = fopen("/fs/data.csv", "w");
for (int i = 0; i < 100; i++) {
printf("%.2f\r\n", Ain.read());
fprintf(fp,"%.2f\n", Ain.read());
D();
}
fclose(fp);
mled0 = 1;
}