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:
- 74:c574a6e04230
- Parent:
- 73:47910ee23ebf
- Child:
- 75:52e3d2280040
--- a/main.cpp Sun Aug 30 04:03:06 2015 +0000 +++ b/main.cpp Sun Aug 30 04:31:39 2015 +0000 @@ -79,6 +79,9 @@ float DP1 = -345.9; float DP0 = 277.63; +float DP0 = 296.03; + + float press; float temp; @@ -253,6 +256,7 @@ // Setup and Initialization //---------------------------------------------------------------------------------------------// + Menu.read_menu(E2PROM, logInerval,refreshtime, volflowSet, device_name, dutyUp, dutyDown, home_lat, home_lon, work_lat, work_lon, RunReady); //Read all data from the EEPROM here //**************//BLE initialization//**************// //bleMenu.read_settings(E2PROM, device_name); @@ -271,7 +275,7 @@ ble.onDataWritten(WrittenHandler); //what happens when the phone sends a message //**************//BLE initialization//**************// - Menu.read_menu(E2PROM, logInerval,refreshtime, volflowSet, device_name, dutyUp, dutyDown, home_lat, home_lon, work_lat, work_lon, RunReady); //Read all data from the EEPROM here + //Test for errors if(RTC.OSF()) { //Don't proceed if the RTC needs reset