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 Volckens Group Sensors

Revision:
51:91cfb90e901c
Parent:
49:19e828650618
Child:
52:80480b2fafba
--- a/main.cpp	Sun Jun 14 18:05:08 2015 +0000
+++ b/main.cpp	Tue Jun 16 16:57:58 2015 +0000
@@ -55,6 +55,7 @@
 float omronMFMax = 3.548944; //g/L
 
 float atmoRho; //g/L
+//UPAS0011 values
 float MF0 = -8.794;
 float MF1 = 27.914;
 float MF2 = -30.738;
@@ -70,13 +71,14 @@
 
 uint8_t digital_pot_setpoint; //min = 0x7F, max = 0x00
 uint8_t digital_pot_set;
+//UPAS0011 values
 float DP0 = 376.73;
 float DP1 = -512.82;
 float DP2 = 303.77;
 float DP3 = -85.942;
 float DP4 = 9.2763;
 
-char filename[] = "/sd/UPAS0010LOG000000000000.txt";
+char filename[] = "/sd/UPAS0011LOG000000000000.txt";
 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)
 
 char Seconds = 0; //Seconds
@@ -124,7 +126,7 @@
     blower = 1;
 
     RTCtime = RTC.get_time();
-    sprintf(filename, "/sd/UPAS0010LOG_%02d-%02d-%02d_%02d-%02d-%02d.txt",RTCtime[5],RTCtime[4],RTCtime[3],RTCtime[2],RTCtime[1],RTCtime[0]);
+    sprintf(filename, "/sd/UPAS0011LOG_%02d-%02d-%02d_%02d-%02d-%02d.txt",RTCtime[5],RTCtime[4],RTCtime[3],RTCtime[2],RTCtime[1],RTCtime[0]);
     FILE *fp = fopen(filename, "w");
     fclose(fp);
     //pc.printf("%d\r\n",digital_pot_setpoint);