![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
chad
Dependencies: MCP23017 WattBob_TextLCD mbed-rtos mbed
Diff: main.cpp
- Revision:
- 7:71a923f423f4
- Parent:
- 6:c538f317f426
- Child:
- 8:0e46cf19fc45
--- a/main.cpp Tue Mar 07 16:18:26 2017 +0000 +++ b/main.cpp Tue Mar 07 16:41:36 2017 +0000 @@ -19,6 +19,7 @@ // Pointers to LCD Screen MCP23017 *par_port; // pointer to 16-bit parallel I/O chip WattBob_TextLCD *lcd; // pointer to 2*16 character LCD object +FILE *fo; // pointer to uSD object // Digital I/O p11 to p20 DigitalIn FqIn(p11); // Digital frequency in for measurement @@ -68,8 +69,8 @@ lcd->cls(); // clear display // .csv log Init - fp = fopen ("/uSD/log.csv", "w"); // Pointer to log file on uSD - fprintf(fp, "Log of Frazer Legge's Embedded Software Assignment 2\n\n"); + fo = fopen ("/uSD/log.csv", "a"); // Pointer to log file on uSD + fprintf(fo, "Log of Frazer Legge's Embedded Software Assignment 2\n\n"); // tick.attach(&CycExec, 0.025); // Period set to 25ms