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:
- 111:5f2ba5f1a468
- Parent:
- 110:67980ebdebf6
- Child:
- 112:fd14d51e3493
diff -r 67980ebdebf6 -r 5f2ba5f1a468 main.cpp --- a/main.cpp Fri Feb 12 02:15:02 2016 +0000 +++ b/main.cpp Fri Feb 12 03:46:24 2016 +0000 @@ -45,8 +45,8 @@ Calibration calibrations(1); //Default serial/calibration if there are no values for the selected option Timeout stop; //This is the stop call back object -//Timeout logg; //This is the logging call back object -Ticker logg; //This is the logging call back object +Timeout logg; //This is the logging call back object + uint16_t serial_num = 1; // Default serial/calibration number @@ -181,8 +181,8 @@ void log_data() { - //logg.detach(); - //logg.attach(&log_data, logInerval); // reading and logging data must take significintly less than 0.5s. This can be increased. + logg.detach(); + logg.attach(&log_data, logInerval); // reading and logging data must take significintly less than 0.5s. This can be increased. RTC.get_time(); @@ -612,8 +612,8 @@ // Main Control Loop - //logg.attach(&log_data, logInerval); // uses callbacks or block Interrupts for anything that uses i2c - logg.attach(&log_data, logInerval); + logg.attach(&log_data, logInerval); // uses callbacks or block Interrupts for anything that uses i2c + }