Based on https://os.mbed.com/users/Airium/code/module_LSM303DLHC/ Main difference is the usage of the I2C - now it is passed as parameter making cooperative use easier. LSM303DLHC Full Driver: Readings For Acc, Mag and Temp; Class Method for frequently-used 13 sensor parameters; Class Method to direct modify registers; Support Calibration (offset scale);

Revision:
1:4ee6df2df73a
Parent:
0:a4131de4bddd
--- a/LSM303DLHC.h	Fri Jan 24 16:06:24 2020 +0000
+++ b/LSM303DLHC.h	Mon Feb 03 07:43:48 2020 +0000
@@ -132,9 +132,9 @@
 
         //// Get Data
         // please refer to the top: COMPACT USER INSTRUCTION        
-        void GetAcc(float arr[3]);  // Get acc
-        void GetMag(float arr[3]);  // Get mag
-        void GetTemp(float arr[1]); // Get temp
+        int GetAcc(float arr[3]);  // Get acc
+        int GetMag(float arr[3]);  // Get mag
+        int GetTemp(float arr[1]); // Get temp
         
         //// sensor reading calibration
         // please refer to the top: COMPACT USER INSTRUCTION