SAIT ARIS / Custom_LSM303

Dependents:   LRAT-example-lorawan-REFACTOR-and-CLEAN-Branch

Revision:
1:d33940a636b0
Parent:
0:252a026cb80b
--- a/accelerometer.h	Wed Sep 12 20:08:50 2018 +0000
+++ b/accelerometer.h	Thu Sep 13 18:13:45 2018 +0000
@@ -1,9 +1,50 @@
 #ifndef ACCELEROMETER_H_
 #define ACCELEROMETER_H_
 
+#include "mbed.h"
+
 class Accelerometer
 {
-
+    public:
+    
+        /**
+         */
+        Accelerometer();
+        
+        /**
+         */
+        virtual ~Accelerometer();
+        
+        /**
+         */
+        void setters(I2C *_i2c, char *_buf);
+        
+        /**
+         */
+        void dumpCfg();
+        
+        /**
+         */
+        void onIRQ();
+        
+        /**
+         */
+        void init();
+        
+        /**
+         */
+        //void read();
+        
+        /**
+         */
+        char *buf;
+        
+    private:
+        /**
+         */
+        I2C *i2c;
+        
+        InterruptIn accPin;
 };
 
 #endif
\ No newline at end of file