MtSense01 Easy use interface

Dependents:   Mt05_MtSense01

MtSense01.h

Committer:
johnathanlyu
Date:
2018-04-27
Revision:
2:9a301d7b8f44
Parent:
1:26745d857755

File content as of revision 2:9a301d7b8f44:

#ifndef MTSENSE01_H
#define MTSENSE01_H

#include "mbed.h"
#include "BMP280.h"
#include "SHT2X.h"

class MtSense01 {
    public:
        MtSense01(I2C& i2c, Serial& pc);
        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