Application for nRF51822 mbed KIT that controls the intensity of LED2 using the BLE UART Service. Works with the Android App BLE_mbed_Remote available here https://github.com/bennthomsen/BLE_mbed_Remote
Dependencies: BLE_API mbed nRF51822
Fork of BLE_UART_LEDControl_Echo by
This program demonstrates the use of the BLE UART Service to receive and send commands in order to remotely control the operation. In this example the intensity of LED2 can be remotely controlled.
The program accepts commands of the form "led2 0.1" over the BLE UART Service and uses these to set the duty cycle of the PWM Output that is connected to LED2 on the nRF51822 mbed KIT.
An Example Android App is available here https://github.com/bennthomsen/BLE_mbed_Remote. The complete source code and Android Studio Project files are available and can simply be pulled into Android Studio. The App implements sending of text, LED on off Button and a slider to control the LED brightness. At this stage setting the switch to off sets the PWM duty cycle to 0.0, however due to the PWMOut implementation in mbed the LED is not completely off at this point.
Revisions of main.cpp
Revision | Date | Message | Actions |
---|---|---|---|
15:016434184568 | 2014-12-18 | Initial Commit - Working Version | File Diff Annotate |
14:8ff3bfb6b19d | 2014-12-17 | Removed unnecessary code.; Turned console DEBUG off | File Diff Annotate |
13:291a8f177400 | 2014-12-17 | modified to control LED2 by sending commands over BLE; "led2 on" turns LED2 on; "led2 off" turns LED2 off; | File Diff Annotate |
12:36a9f01cfa0a | 2014-12-17 | Initial Commit: Added comments | File Diff Annotate |
10:633cec718bf4 | 2014-11-28 | updating to 0.2.5 of the BLE_API | File Diff Annotate |
6:e0fc9072e853 | 2014-09-22 | updating to 0.2.0 of the BLE_API | File Diff Annotate |
5:4bc41267a03a | 2014-09-02 | updating underlying libraries. | File Diff Annotate |
2:e060367b9024 | 2014-06-13 | update demo to use the new APIs; we have it working now. | File Diff Annotate |
0:e910d9bb040f | 2014-05-26 | initial | File Diff Annotate |