![](/media/cache/group/default_image.jpg.50x50_q85.jpg)
02/07/15
Dependencies: mbed
Diff: Data.cpp
- Revision:
- 36:a2d20d5e5e19
- Parent:
- 35:085a674c9fdf
- Child:
- 40:23008d8111d5
--- 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