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.
main.cpp
00001 #include "mbed.h" 00002 #include "MSCFileSystem.h" 00003 00004 AnalogIn ain (p20); 00005 DigitalOut myled(LED1); 00006 //LocalFileSystem fs ("fs"); 00007 MSCFileSystem fs("fs"); 00008 00009 int main() { 00010 00011 FILE *fp = fopen("/fs/data.csv","w"); 00012 00013 for (int i = 0; i < 100 ; i++) { 00014 fprintf(fp,"%.2f\n",ain.read()); 00015 wait (0.1); 00016 } 00017 00018 fclose(fp); 00019 myled=1; 00020 }
Generated on Fri Jul 29 2022 16:37:14 by
1.7.2