micro:bitにRCBControllerを接続するサンプルプログラム。 接続が不安定。micro:bitの電源入り切りやリセットSW押下を何度か試せば接続できるかも。
Fork of BLE_GATT_Example by
Diff: main.cpp
- Revision:
- 5:d0548c64e2e7
- Parent:
- 4:7ef90665b399
- Child:
- 6:97b22b5bfbb8
--- a/main.cpp Sat Feb 14 15:27:51 2015 +0000 +++ b/main.cpp Sat Feb 14 15:43:55 2015 +0000 @@ -37,6 +37,8 @@ void writeCharCallback(const GattCharacteristicWriteCBParams *params) { //TODO: when character is written here change the LED, update the read characteristic, and print out to console + led = params->data[0]; + printf("LED Written To, value=%x",params->data[0]); } int