Fork of Eugene Gonzalez's version of LSM9DS1_Demo, Modified by Sherry Yang.

Fork of LSM6DS3 by Sherry Yang

Revision:
2:ed14e6196255
Parent:
1:924c7dea286e
--- a/LSM6DS3.h	Mon Jun 20 19:15:31 2016 +0000
+++ b/LSM6DS3.h	Tue Jun 21 20:51:25 2016 +0000
@@ -150,6 +150,8 @@
         A_BW_105 = 0x6,         // 105 Hz (0x6)
         A_BW_50 = 0x7           // 50 Hz (0x7)
     };
+    
+    
 
     // We'll store the gyro, and accel, readings in a series of
     // public class variables. Each sensor gets three variables -- one for each
@@ -164,6 +166,7 @@
     float gx, gy, gz;
     float ax, ay, az;
     float temperature_c, temperature_f; // temperature in celcius and fahrenheit
+    float intr;
 
     
     /**  LSM6DS3 -- LSM6DS3 class constructor
@@ -217,6 +220,9 @@
     */
     void readTemp();
     
+    /** Read Interrupt **/
+    void readIntr();
+    
     /**  setGyroScale() -- Set the full-scale range of the gyroscope.
     *  This function can be called to set the scale of the gyroscope to 
     *  245, 500, or 2000 degrees per second.
@@ -281,6 +287,9 @@
     */
     void initAccel();
     
+    /** Setup Interrupt **/
+    void initIntr();
+    
     /**  calcgRes() -- Calculate the resolution of the gyroscope.
     *  This function will set the value of the gRes variable. gScale must
     *  be set prior to calling this function.