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: mbed
main.cpp
- Committer:
- Smashftw
- Date:
- 2017-10-31
- Revision:
- 0:7591d1dbca76
File content as of revision 0:7591d1dbca76:
#include "mbed.h"
DigitalOut Led1(LED1);
LocalFileSystem local("local");
int main()
{
int i=0, t=0;
FILE *fp = fopen("/local/fil1.txt", "w");
if (fp == NULL) {
Led1 = 1;
return 1;
}
while (i < 100) {
for(t=0; t<10; t++) {
fprintf(fp,"%3d", i);
i++;
}
fprintf(fp, "\n");
}
fclose(fp);
return 0;
}