MtSense01 Easy use interface

Dependents:   Mt05_MtSense01

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers MtSense01.h Source File

MtSense01.h

00001 #ifndef MTSENSE01_H
00002 #define MTSENSE01_H
00003 
00004 #include "mbed.h"
00005 #include "BMP280.h"
00006 #include "SHT2X.h"
00007 
00008 class MtSense01 {
00009     public:
00010         MtSense01(I2C& i2c, Serial& pc);
00011         int Initial();
00012         int readData(float* pTemperature = NULL, int* pPressure = NULL, float* pHumidity = NULL);
00013         float getTemperature();
00014         float getPressure();
00015         float getHumidity();
00016         
00017     protected:
00018         SHT2X   sht21;
00019         BMP280  bmp280;
00020     private:
00021         
00022 };
00023 
00024 #endif