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:
- 95:0ae0ffddc544
- Parent:
- 94:c57720890e76
- Child:
- 96:03106adb45c9
diff -r c57720890e76 -r 0ae0ffddc544 main.cpp --- a/main.cpp Thu Dec 10 23:32:24 2015 +0000 +++ b/main.cpp Fri Dec 11 00:11:09 2015 +0000 @@ -243,10 +243,10 @@ RGB_LED.set_led(1,1,1); // Setup and Initialization //---------------------------------------------------------------------------------------------// - Menu.read_menu(E2PROM, logInerval,refreshtime, volflowSet, device_name, dutyUp, dutyDown, home_lat, home_lon, work_lat, work_lon, RunReady, serial_num); //Read all data from the EEPROM here - if(Menu.crr == 255) { - Menu.factory_reset(E2PROM, logInerval,refreshtime, volflowSet, device_name, dutyUp, dutyDown, home_lat, home_lon, work_lat, work_lon, RunReady, serial_num); - } + // Menu.read_menu(E2PROM, logInerval,refreshtime, volflowSet, device_name, dutyUp, dutyDown, home_lat, home_lon, work_lat, work_lon, RunReady, serial_num); //Read all data from the EEPROM here +// if(Menu.crr == 255) { +// Menu.factory_reset(E2PROM, logInerval,refreshtime, volflowSet, device_name, dutyUp, dutyDown, home_lat, home_lon, work_lat, work_lon, RunReady, serial_num); +// } //**************//BLE initialization//**************// RTC.get_time(); uint8_t rtcPassValues[6] = {RTC.seconds, RTC.minutes,RTC.hour,RTC.date,RTC.month,RTC.year}; @@ -324,7 +324,7 @@ pc.printf("You're done, you can now disconect the USB cable.\r\n"); RunReady = 0; - Menu.save_menu(E2PROM, logInerval, refreshtime, volflowSet, device_name, dutyUp, dutyDown, home_lat, home_lon, work_lat, work_lon, RunReady, serial_num); //Save all data to the EEPROM + // Menu.save_menu(E2PROM, logInerval, refreshtime, volflowSet, device_name, dutyUp, dutyDown, home_lat, home_lon, work_lat, work_lon, RunReady, serial_num); //Save all data to the EEPROM RGB_LED.set_led(1,1,0);