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
Revision 3:823f105078c7, committed 2016-01-07
- Comitter:
- RedBearLab
- Date:
- Thu Jan 07 02:49:37 2016 +0000
- Parent:
- 2:bbcdd23ba9ba
- Commit message:
- Update libraries.
Changed in this revision
diff -r bbcdd23ba9ba -r 823f105078c7 BLE_API.lib --- a/BLE_API.lib Mon Jul 27 06:51:28 2015 +0000 +++ b/BLE_API.lib Thu Jan 07 02:49:37 2016 +0000 @@ -1,1 +1,1 @@ -http://mbed.org/teams/Bluetooth-Low-Energy/code/BLE_API/#4cd3b18607ec +http://mbed.org/teams/Bluetooth-Low-Energy/code/BLE_API/#bfc5b9b6ecf5
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");
diff -r bbcdd23ba9ba -r 823f105078c7 mbed.bld --- a/mbed.bld Mon Jul 27 06:51:28 2015 +0000 +++ b/mbed.bld Thu Jan 07 02:49:37 2016 +0000 @@ -1,1 +1,1 @@ -http://mbed.org/users/mbed_official/code/mbed/builds/bad568076d81 \ No newline at end of file +http://mbed.org/users/mbed_official/code/mbed/builds/4336505e4b1c \ No newline at end of file
diff -r bbcdd23ba9ba -r 823f105078c7 nRF51822.lib --- a/nRF51822.lib Mon Jul 27 06:51:28 2015 +0000 +++ b/nRF51822.lib Thu Jan 07 02:49:37 2016 +0000 @@ -1,1 +1,1 @@ -http://mbed.org/teams/Nordic-Semiconductor/code/nRF51822/#c7adea3c1e37 +http://mbed.org/teams/Nordic-Semiconductor/code/nRF51822/#3cc0718d98d0