this is program how build nRF51822 to get ADXL345 data

Dependencies:   BLE_API mbed nRF51822

Fork of ADXL345_I2C by Peter Swanson

Files at this revision

API Documentation at this revision

Comitter:
asyrofi
Date:
Mon Feb 19 08:58:15 2018 +0000
Parent:
16:e97016b6a7e0
Child:
18:3e3143249113
Commit message:
bismillah

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
--- 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)