BLE GAP 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-GAPButton/

Please read the documentation in this page.

Revision:
6:bfe23efb0d97
Parent:
3:f0ed4199b362
Child:
34:c99398622773
--- a/mbed_app.json	Wed Aug 03 07:30:57 2016 +0100
+++ b/mbed_app.json	Thu Aug 04 12:15:26 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"
         }
     }
 }