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:
5:0edf35b6d79a
Parent:
4:69bd7e8a994c
Child:
6:2328feb48792
--- a/main.cpp	Sun May 03 15:25:51 2015 +0000
+++ b/main.cpp	Sun May 03 15:36:37 2015 +0000
@@ -2,12 +2,14 @@
 #include "SDFileSystem.h"
 #include "Adafruit_ADS1015.h"
 #include "MCP40D17.h"
+#include "BMP280.h"
 
 #define SERIAL_BAUD_RATE    9600
 
 I2C i2c(p22, p20);
 Adafruit_ADS1115 ads(&i2c);
 MCP40D17 DigPot(&i2c);
+BMP280 bmpsensor(p22, p20);
 Serial  pc(USBTX, USBRX);
 DigitalOut blower(p29, 1);
 
@@ -53,7 +55,7 @@
       //Mount the filesystem
     sd.mount();
     FILE *fp = fopen(filename, "a");
-    fprintf(fp, "%f,%d,%d,%d,%d\r\n", t.read(),omronReading,vInReading, vBlowerReading, omronDiff);
+    fprintf(fp, "%f,%d,%d,%d,%d,%2.2f,%04.2f\r\n", t.read(),omronReading,vInReading, vBlowerReading, omronDiff,bmpsensor.getTemperature(), bmpsensor.getPressure());
     fclose(fp);
     //Unmount the filesystem
     sd.unmount();