BLE Button example

This example is a fork of the following mbed-os example:

https://developer.mbed.org/teams/mbed-os-examples/code/mbed-os-example-ble-Button/

Please read the documentation in this page.

Revision:
5:b630d2a88c51
Parent:
3:6f18b8269d65
Child:
34:595f8acac1e8
--- a/mbed_app.json	Sat Jul 30 00:00:49 2016 +0100
+++ b/mbed_app.json	Tue Aug 02 09:45:20 2016 +0100
@@ -1,13 +1,28 @@
 {
+    "config": {
+        "ble_button_pin_name": {
+            "help": "The pin name used as button in this application",
+            "macro_name": "BLE_BUTTON_PIN_NAME",
+            "required": true
+        }
+    },
     "target_overrides": {
+        "NRF51_DK": {
+            "ble_button_pin_name": "BUTTON1"
+        },
+        "NRF52_DK": {
+            "ble_button_pin_name": "BUTTON1"
+        },
         "K64F": {
             "target.features_add": ["BLE"],
             "target.extra_labels_add": ["ST_BLUENRG"],
-            "target.macros_add": ["IDB0XA1_D13_PATCH"]
+            "target.macros_add": ["IDB0XA1_D13_PATCH"],
+            "ble_button_pin_name": "SW2"
         },
         "NUCLEO_F401RE": {
             "target.features_add": ["BLE"],
-            "target.extra_labels_add": ["ST_BLUENRG"]
+            "target.extra_labels_add": ["ST_BLUENRG"],
+            "ble_button_pin_name": "USER_BUTTON"
         }
     }
 }