MtSense01 Easy use interface

Dependents:   Mt05_MtSense01

Revision:
0:c95ce83462a0
Child:
1:26745d857755
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/MtSense01.h	Fri Jun 02 05:40:46 2017 +0000
@@ -0,0 +1,26 @@
+#ifndef MTSENSE01_H
+#define MTSENSE01_H
+
+#include "mbed.h"
+#include "BMP180.h"
+#include "BMP280.h"
+#include "SHT2X.h"
+
+class MtSense01 {
+    public:
+        MtSense01(I2C& i2c);
+        int Initial();
+        int readData(float* pTemperature = NULL, int* pPressure = NULL, float* pHumidity = NULL);
+        float getTemperature();
+        float getPressure();
+        float getHumidity();
+        
+    protected:
+        BMP180  bmp180;
+        SHT2X   sht21;
+        BMP280  bmp280;
+    private:
+        
+};
+
+#endif
\ No newline at end of file