Working code with BLE and accelerometer.(DFU pending)

Dependencies:   BLE_API mbed nRF51822 strike_detect

Fork of TenCount_BLE by MZJ

Revision:
5:7c5630442028
Parent:
4:2b0947ed0e0d
--- a/main.cpp	Sun Apr 24 15:02:56 2016 +0000
+++ b/main.cpp	Thu Aug 25 09:02:27 2016 +0000
@@ -62,7 +62,7 @@
 
 BLE  ble;
 
-Serial pc(USBTX, USBRX);
+Serial pc(P0_4, USBRX);
 
 
 // The Nordic UART Service
@@ -178,7 +178,7 @@
     
     LIS3DH_init();
     
-    pc.attach( uartCB , pc.RxIrq);
+    //pc.attach( uartCB , pc.RxIrq);
    // setup advertising 
     ble.accumulateAdvertisingPayload(GapAdvertisingData::BREDR_NOT_SUPPORTED);
     ble.setAdvertisingType(GapAdvertisingParams::ADV_CONNECTABLE_UNDIRECTED);