Library for accelerometer and SysClean

Revision:
2:f9ddabfe2eb6
Parent:
1:55d35606b477
--- a/BMI160.h	Tue Oct 18 17:47:44 2016 +0000
+++ b/BMI160.h	Wed Oct 19 20:44:59 2016 +0000
@@ -7,15 +7,26 @@
 #define BMI160_H
 
 #include "mbed.h"
-#include "ST7567.h"
 
 class BMI160{
     public:
-        void configureAccelerometer();
-        void calculateMovement();
+        /*configureAccelerometer() setup and configure accelerometer BMI160*/  
+        void configureAccelerometer(); 
+        
+        /*readAccelerometer() read and calculate angle with accelerometer*/
         void readAccelerometer();
-        void runTempCommands();
-        void lcdClear();
+       
+         /**
+         * getAngle() return the angle calculated with accelerometer
+         * Reference is top of the LPCXpresso(headers side) poiting bottom of container
+         * 
+         * @return 0 when in the referential position(Closed cover)
+         * @return 90 when 90 degrees from referential
+         * @return 180 when 180 degrees from referential
+         * @return 270 when 270 degrees from referential
+         * @return -1 when error
+         */
+         int getAngle();
 };