nRF51822 serves as the bridge between BLE central and MCU, which makes cental able to fetch photos from serial camera.

Dependencies:   BLE_API mbed nRF51822

Fork of nRF51822_blinky by RedBearLab

Revision:
20:f6e313950373
Parent:
19:03d39b923919
Child:
21:4753996b0bcb
--- a/src/main.cpp	Thu May 19 14:55:06 2016 +0000
+++ b/src/main.cpp	Sat May 21 09:13:27 2016 +0000
@@ -11,8 +11,8 @@
 #include "ringBuffer.h"
 #include "application.h"
 
-#define DEVICE_NAME                      "ket_041"
-#define CODE_VERSION                     6
+#define DEVICE_NAME                      "ket_048"
+#define CODE_VERSION                     7
 
 #define SDA_PIN                          P0_8
 #define SCL_PIN                          P0_9
@@ -29,7 +29,7 @@
 #define CHECK_BUTTON_VOLTAGE_LEVEL       0.05f
 
 #ifdef LOW_POWER_CONSTRAINT
-    #define LOW_POWER_THERS                  100
+    #define LOW_POWER_THERS                  103        // changed 5/21
     #define LOW_POWER_THERS_MARGIN           2
     #define MAXIMUM_LOW_POWER_COUNTER        30
 #endif
@@ -615,8 +615,7 @@
             
             if(isInserted && systemState == SYS_LOCKING_BUTTON){
                 timerFlashInsertionLed();
-            }
-            
+            }   
         }
     
         if ( time % 400 == 4 ) {                       // 1s