MPU6050センサ Wallbot_BLE用 サンプル
Dependencies: BLE_API mbed nRF51822
Diff: main.cpp
- Revision:
- 17:e7c43d1b362f
- Parent:
- 16:e2386ded5c74
- Child:
- 18:7ef0e3b768c2
diff -r e2386ded5c74 -r e7c43d1b362f main.cpp --- a/main.cpp Tue May 26 16:39:02 2015 +0000 +++ b/main.cpp Wed May 27 13:24:05 2015 +0000 @@ -53,7 +53,7 @@ uint8_t accelPayload[sizeof(float)*10] = {0,}; uint8_t defaultWriteValue = 2; -uint8_t writePayload[3] = {0, defaultWriteValue, defaultWriteValue,}; +uint8_t writePayload[2] = {defaultWriteValue, defaultWriteValue,}; GattCharacteristic accelChar (MPU6050_Accel_Characteristic_uuid,