MtSense01 Easy use interface

Dependents:   Mt05_MtSense01

MtSense01.h

Committer:
johnathanlyu
Date:
2017-06-02
Revision:
1:26745d857755
Parent:
0:c95ce83462a0
Child:
2:9a301d7b8f44

File content as of revision 1:26745d857755:

#ifndef MTSENSE01_H
#define MTSENSE01_H

#include "mbed.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:
        SHT2X   sht21;
        BMP280  bmp280;
    private:
        
};

#endif