![](/media/cache/group/default_image.jpg.50x50_q85.jpg)
This is a basic program that provides the necessary BLE service to allow communications with the UPAS
Dependencies: BLE_API mbed nRF51822 CronoDot EEPROM NCP5623BMUTBG ADS1115 BME280 Calibration_one MCP40D17 SDFileSystem LSM303 SI1145 STC3100
Fork of BLE_Button by
Diff: main.cpp
- Revision:
- 14:4fc1788b8ad2
- Parent:
- 13:b43ec7e0cc1d
- Child:
- 15:c9c93454dd56
--- a/main.cpp Mon Nov 02 20:54:48 2015 +0000 +++ b/main.cpp Tue Nov 03 01:34:58 2015 +0000 @@ -82,9 +82,10 @@ /* Trigger twenty-four run-time mode*/ RGB_LED.set_led(2,3,1); - }else if(params->handle == upasServicePtr->demoCharacteristic.getValueHandle()){ + }else if(params->handle == upasServicePtr->runModeCharacteristic.getValueHandle()){ /* Trigger demo mode*/ RGB_LED.set_led(3,1,0); + E2PROM.write(0x00036,writeData,1); } }