this is program how build nRF51822 to get ADXL345 data
Dependencies: BLE_API mbed nRF51822
Fork of ADXL345_I2C by
Diff: main.cpp
- Revision:
- 17:75e827cd0923
- Parent:
- 16:e97016b6a7e0
- Child:
- 19:5b0da580c77e
diff -r e97016b6a7e0 -r 75e827cd0923 main.cpp --- a/main.cpp Mon Feb 19 08:53:20 2018 +0000 +++ b/main.cpp Mon Feb 19 08:58:15 2018 +0000 @@ -193,9 +193,9 @@ //Measurement mode. accelerometer.setPowerControl(0x08); - int avg1 = calibratex(); + /*int avg1 = calibratex(); int avg2 = calibratey(); - int avg3 = calibratez(); + int avg3 = calibratez();*/ while (1)