![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
SimpleControls works with the BLEController iOS/Android App. The mbed's pin can acts as DIGITAL_IN, DIGITAL_OUT, PWM, SERVO, ANALOG_IN. The sketch is to show you how to control the pin as one of the abilities. Note that not every pin can own all of the abilities.
Dependencies: BLE_API mbed nRF51822
Fork of nRF51822_SimpleControls by
Diff: main.cpp
- Revision:
- 3:823f105078c7
- Parent:
- 2:bbcdd23ba9ba
- Child:
- 4:df5f8c413d32
diff -r bbcdd23ba9ba -r 823f105078c7 main.cpp --- a/main.cpp Mon Jul 27 06:51:28 2015 +0000 +++ b/main.cpp Thu Jan 07 02:49:37 2016 +0000 @@ -71,7 +71,7 @@ -void disconnectionCallback(Gap::Handle_t handle, Gap::DisconnectionReason_t reason) +void disconnectionCallback(const Gap::DisconnectionCallbackParams_t *params) { pc.printf("Disconnected \r\n"); pc.printf("Restart advertising \r\n");