Code supports writing to the SD card as well as working with the Volckens group smartphone apps for the mbed HRM1017
Dependencies: ADS1115 BLE_API BME280 Calibration CronoDot EEPROM LSM303 MCP40D17 NCP5623BMUTBG SDFileSystem SI1145 STC3100 mbed nRF51822
Fork of UPAS_BLE_and_USB by
Diff: main.cpp
- Revision:
- 31:f8504ef165fb
- Parent:
- 30:8a33a94a1a89
- Child:
- 33:bc73a2493821
--- a/main.cpp Sun May 31 08:16:05 2015 +0000 +++ b/main.cpp Sun May 31 15:28:20 2015 +0000 @@ -54,7 +54,7 @@ float deltaflow; int digital_pot_setpoint; //min = 0x7F, max = 0x00 -char filename[] = "/sd/UPAS0004LOG000000000000.txt"; +char filename[] = "/sd/UPAS0004LOG_00-00-00_00:00:00.txt"; TwoWire Wire = TwoWire(NRF_TWI0); SDFileSystem sd(SPIS_PSELMOSI, SPIS_PSELMISO, SPIS_PSELSCK, SPIS_PSELSS, "sd"); // I believe this matches Todd's pinout, let me know if this doesn't work. (p12, p13, p15, p14) @@ -115,7 +115,7 @@ blower = 1; get_time(); - sprintf(filename, "/sd/UPAS0004LOG_%02d%02d%02d%02d%02d%02d.txt",Year,Month,Date,Hour,Minutes,Seconds); + sprintf(filename, "/sd/UPAS0004LOG_%02d-%02d-%02d_%02d:%02d:%02d.txt",Year,Month,Date,Hour,Minutes,Seconds); FILE *fp = fopen(filename, "w"); fclose(fp);