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.
Revision 1:021abaf618c9, committed 2010-03-03
- Comitter:
- chris
- Date:
- Wed Mar 03 22:10:00 2010 +0000
- Parent:
- 0:53141d94b116
- Commit message:
Changed in this revision
| main.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r 53141d94b116 -r 021abaf618c9 main.cpp
--- a/main.cpp Mon Oct 26 23:57:03 2009 +0000
+++ b/main.cpp Wed Mar 03 22:10:00 2010 +0000
@@ -1,15 +1,10 @@
#include "mbed.h"
-#define PI 3.14159265
LocalFileSystem local("local");
int main() {
- FILE *fp = fopen("/local/data.csv", "w");
- // print out one cycle of a sine wave in 360 steps
- for (float i=0 ; i < 2.0 * PI ; i+= (PI / 180.0) ) {
- fprintf(fp, "%0.3f,\n",sin(i));
- }
-
+ FILE *fp = fopen("/local/test.txt", "w");
+ fprintf(fp, "Hello file system!\n");
fclose(fp);
}