LPS25H library

Dependents:   teensyIMU

Fork of LPS25H by yasuyuki onodera

Revision:
1:2a808d2d05ff
Parent:
0:0d2babe81a04
diff -r 0d2babe81a04 -r 2a808d2d05ff LPS25H.h
--- a/LPS25H.h	Sun Oct 12 02:42:32 2014 +0000
+++ b/LPS25H.h	Thu Oct 06 23:28:55 2016 +0000
@@ -8,7 +8,7 @@
 #ifndef LPS25H_H_
 #define LPS25H_H_
 
-#define LPS25H_ADDR                 0xB8
+#define LPS25H_ADDR                 0xBA
 #define LPS25H_REF_P_XL             0x08
 #define LPS25H_REF_P_L              0x09
 #define LPS25H_REF_P_H              0x0A
@@ -41,11 +41,13 @@
     LPS25H (PinName sda, PinName scl);
     LPS25H (I2C& p_i2c);
     void init();
+    float presPa;
+    float tempC;
 
     void put(unsigned char a, unsigned char b);
     void get(unsigned char a);
-    long pressure();
-    short temperature();
+    void readPres();
+    void temperature();
 
 protected: