Initial version for the 2 chip MMA8653/MAG3110 version of the BBC Microbit

Dependencies:   mbed AES BLE_API nRF51822 smallAES

Revision:
4:052ba96b27f5
Parent:
3:b9783107a8c4
--- a/main.cpp	Mon Sep 30 11:59:42 2019 +0000
+++ b/main.cpp	Wed Oct 02 18:52:21 2019 +0000
@@ -31,7 +31,7 @@
 DigitalOut alivenessLED(P0_13, 0);
 DigitalOut actuatedLED(P0_14, 0);
 
-const static char     DEVICE_NAME[] = "front1";
+const static char     DEVICE_NAME[] = "Microbit1";
 //static const uint16_t uuid16_list[] = {LEDService::LED_SERVICE_UUID,ACCELService::ACCEL_SERVICE_UUID,ButtonAService::BUTTONA_SERVICE_UUID};
 static const uint16_t uuid16_list[] = {0xA012,0xFFF3};
 
@@ -109,9 +109,9 @@
     bool initialValueForLEDCharacteristic = false;
     ledServicePtr = new LEDService(ble, initialValueForLEDCharacteristic);
     btnAServicePtr = new ButtonAService(ble);
-    int16_t Tst=0;
-    AccelServicePtr = new ACCELService(ble,Tst);
-    MagServicePtr = new MAGService(ble,Tst);
+    int16_t InitialValue=0;
+    AccelServicePtr = new ACCELService(ble,InitialValue);
+    MagServicePtr = new MAGService(ble,InitialValue);
     /* setup advertising */
     ble.gap().accumulateAdvertisingPayload(GapAdvertisingData::BREDR_NOT_SUPPORTED | GapAdvertisingData::LE_GENERAL_DISCOVERABLE);
     ble.gap().accumulateAdvertisingPayload(GapAdvertisingData::COMPLETE_LIST_16BIT_SERVICE_IDS, (uint8_t *)uuid16_list, sizeof(uuid16_list));