SHT30-DIS-B Library

Dependents:   M1DK_Skywire_Demo M1DK_Skywire_Demo1

Fork of LPS331 by NimbeLink

Revision:
3:7e631c5756e2
Parent:
2:8a7744c5fb42
--- a/LPS331.h	Wed Feb 25 02:52:47 2015 +0000
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,64 +0,0 @@
-//**********************
-// LPS331.h for mbed
-//
-// (C)Copyright 2014 All rights reserved by Y.Onodera
-// http://einstlab.web.fc2.com
-//**********************
-
-#ifndef LPS331_H_
-#define LPS331_H_
-
-#define LPS331_ADDR_L 0xB8
-#define LPS331_ADDR_H 0xBA
-#define LPS331_ADDR LPS331_ADDR_H
-#define LPS331_REF_P_XL 0x08
-#define LPS331_REF_P_L  0x09
-#define LPS331_REF_P_H  0x0A
-#define LPS331_WHO_AM_I 0x0F
-#define LPS331_RES_CONF 0x10
-#define LPS331_CTRL_REG1    0x20
-#define LPS331_CTRL_REG2    0x21
-#define LPS331_CTRL_REG3    0x22
-#define LPS331_INT_CFG_REG  0x23
-#define LPS331_INT_SOURCE_REG   0x24
-#define LPS331_THS_P_LOW_REG    0x25
-#define LPS331_THS_P_HIGH_REG   0x26
-#define LPS331_STATUS_REG   0x27
-#define LPS331_PRESS_POUT_XL_REH    0x28
-#define LPS331_PRESS_OUT_L  0x29
-#define LPS331_PRESS_OUT_H  0x2A
-#define LPS331_TEMP_OUT_L   0x2B
-#define LPS331_TEMP_OUT_H   0x2C
-#define LPS331_AMP_CTRL 0x2D
-#define LPS331_DELTA_PRESS_XL   0x3C
-#define LPS331_DELTA_PRESS_H    0x3D
-#define LPS331_DELTA_PRESS_L    0x3E
-
-#include "mbed.h"
-#include "typedef.h"
-
-class LPS331{
-public:
-    LPS331 (PinName sda, PinName scl);
-    LPS331 (I2C& p_i2c);
-    void init();
-
-    void put(unsigned char a, unsigned char b);
-    void get(unsigned char a);
-    long value();
-    short temperature();
-
-protected:
-    
-    I2C _i2c;
-
-    DWORD_VAL press;
-    WORD_VAL temp;
-    char buf[2];
-
-};
-
-#endif /* LPS331_H_ */
-
-
-