Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: BLE_API_Native_IRC mbed
Fork of BLE_RCBController by
Revision 1:653130ebf8fd, committed 2014-07-12
- Comitter:
- micono
- Date:
- Sat Jul 12 15:32:26 2014 +0000
- Parent:
- 0:8c643bfe55b7
- Commit message:
- ?????LED??; ????????LED???????
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/main.cpp Thu Jul 10 14:21:52 2014 +0000 +++ b/main.cpp Sat Jul 12 15:32:26 2014 +0000 @@ -34,7 +34,7 @@ virtual void onConnected(void) { - ConnectStateLed = 0; + ConnectStateLed = 1; #if DBG pc.printf("Connected\n\r"); #endif @@ -61,7 +61,8 @@ pc.printf("DATA:%d %d %d %d %d %d %d %d %d %d\n\r",controller.data[0],controller.data[1],controller.data[2],controller.data[3],controller.data[4], controller.data[5],controller.data[6],controller.data[7],controller.data[8],controller.data[9]); #endif - ControllerStateLed = (float)controller.status.LeftAnalogLR / 255.0;; + //ControllerStateLed = (float)controller.status.LeftAnalogLR / 255.0; + ControllerStateLed = (float)controller.status.LeftAnalogUD / 255.0; } @@ -101,7 +102,7 @@ /* Start advertising (make sure you've added all your data first) */ nrf.getGap().startAdvertising(advParams); - ConnectStateLed = 1; + ConnectStateLed = 0; ControllerStateLed = 1; for (;;)