![](/media/cache/group/default_image.jpg.50x50_q85.jpg)
02/07/15
Dependencies: mbed
Data.cpp
- Committer:
- ADAMSTRUTT
- Date:
- 2015-07-08
- Revision:
- 36:a2d20d5e5e19
- Parent:
- 35:085a674c9fdf
- Child:
- 40:23008d8111d5
File content as of revision 36:a2d20d5e5e19:
#include "mbed.h" LocalFileSystem local("local"); 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); }