HIH-4030 fork to handle 3.3v input voltage

Fork of HIH-4030 by Simon Barker

Committer:
simonbarker
Date:
Sun Jun 23 11:53:24 2013 +0000
Revision:
0:114b50b41972
Child:
1:f0ae84350631
HIH-4030 library with comments

Who changed what in which revision?

UserRevisionLine numberNew contents of line
simonbarker 0:114b50b41972 1 #ifndef HIH4030_h
simonbarker 0:114b50b41972 2 #define HIH4030_h
simonbarker 0:114b50b41972 3
simonbarker 0:114b50b41972 4 #include "mbed.h"
simonbarker 0:114b50b41972 5
simonbarker 0:114b50b41972 6 class HIH4030{
simonbarker 0:114b50b41972 7
simonbarker 0:114b50b41972 8 public:
simonbarker 0:114b50b41972 9 HIH4030(PinName vout);
simonbarker 0:114b50b41972 10 float ratioHumidity();
simonbarker 0:114b50b41972 11 float sensorRH();
simonbarker 0:114b50b41972 12 float trueSensorRH(float temperature);
simonbarker 0:114b50b41972 13
simonbarker 0:114b50b41972 14 private:
simonbarker 0:114b50b41972 15 AnalogIn vout_;
simonbarker 0:114b50b41972 16 float sample;
simonbarker 0:114b50b41972 17 float temperature;
simonbarker 0:114b50b41972 18 };
simonbarker 0:114b50b41972 19 #endif