danny hack

Files at this revision

API Documentation at this revision

Comitter:
dendanny
Date:
Sun Sep 08 20:37:51 2019 +0000
Parent:
7:f1ba533021b8
Commit message:
danny hacks

Changed in this revision

Lis2dh12.h Show annotated file Show diff for this revision Revisions of this file
diff -r f1ba533021b8 -r f6c4150a84cb Lis2dh12.h
--- a/Lis2dh12.h	Mon Oct 15 16:06:53 2018 +0200
+++ b/Lis2dh12.h	Sun Sep 08 20:37:51 2019 +0000
@@ -65,15 +65,18 @@
         uint8_t int1Threshold(uint8_t threshold);
         uint8_t int1Config(uint8_t config);
         void clearIntFlag();
+        
+        uint8_t readFromReg(uint8_t regAddr, uint8_t *buff, size_t buffSize);
+        uint8_t writeToReg(uint8_t regAddr, uint8_t *buff, size_t buffSize);
+        
+        aconno_i2c i2c;
+
     private:
-        aconno_i2c i2c;
         SPI *spi;
         DigitalOut *cs;
 
         bool spiInterface;
 
-        uint8_t readFromReg(uint8_t regAddr, uint8_t *buff, size_t buffSize);
-        uint8_t writeToReg(uint8_t regAddr, uint8_t *buff, size_t buffSize);
 
 };