Export for Dan

Dependencies:   mbed MODSERIAL1

HIH_5030.h

Committer:
atravieso
Date:
2016-04-14
Revision:
9:b2debb0a6272
Parent:
5:14a21c3812ed

File content as of revision 9:b2debb0a6272:



#include "mbed.h"

class HIH5030 {

public:

HIH5030(float dataPin, float supplyVoltage, float referenceVoltage);

float getSensorRH();
float getTrueRH(float temperature);
float vout();

private:
float pin; /* IO pin connected to sensor's data pin */
float vSupply; /* voltage supplying the humidity sensor */
float slope; /* value may be calculated or factory calibrated */
float zeroOffset; /* value may be calcualted or factory calibrated */
float vRef; /* analog voltage reference, in volts */

};