02/07/15

Dependencies:   mbed

Dependents:   TabbedGUIMbed

Revision:
36:a2d20d5e5e19
Parent:
35:085a674c9fdf
Child:
40:23008d8111d5
diff -r 085a674c9fdf -r a2d20d5e5e19 Data.cpp
--- a/Data.cpp	Wed Jul 08 07:11:31 2015 +0000
+++ b/Data.cpp	Wed Jul 08 08:38:37 2015 +0000
@@ -2,8 +2,9 @@
 
 LocalFileSystem local("local"); 
 
-int data(){
-    FILE *fp = fopen("/local/Data.txt", "w");  // Open "out.txt" on the local file system for writing
-    fprintf(fp, "Hello World!");
+void data(int sensor_number, int speed){
+    FILE *fp = fopen("/local/Data.xls", "w");  // Open "Data.txt" on the local file system for writing
+    fprintf(fp, "Sensor Name\tTime\n");
+    fprintf(fp, "Sensor %d\t%d",sensor_number, speed);
     fclose(fp);
 }
\ No newline at end of file