kj

Dependencies:   ADXL345_I2C

Fork of Accelerometre by Florent Coudronniere

Revision:
0:807955c8969c
Child:
1:cb5c86a009c8
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Accelerometre.h	Tue Mar 14 13:30:11 2017 +0000
@@ -0,0 +1,41 @@
+#ifndef Accelerometre_H
+#define Accelerometre_H
+
+#include "ADXL345_I2C.h"
+#include "string.h"
+
+
+
+class Accelerometre
+{
+    //// déclaration des attributs/méthode privés ////
+    private:
+        int readings[3];
+        int readingPrec[3];
+        
+        int i;//
+        char position;
+        ADXL345_I2C *_acc;
+        //string resultext;
+
+     //// déclaration des attributs/méthode publique ////
+    public:
+        Accelerometre(); // Constructeur par défaut
+        Accelerometre(ADXL345_I2C * acc);
+        ~Accelerometre(); // Destructeur 
+        
+        
+        char getPosition();
+        void calculeABS();
+        void getXYZ(int* posXYZ);
+        int initAcc(void);
+        
+        
+        
+
+
+
+
+};
+
+#endif // ANALYSEURTAB_H