HIH-4030 fork to handle 3.3v input voltage

Fork of HIH-4030 by Simon Barker

Committer:
ddollar
Date:
Sun Aug 11 19:58:52 2013 +0000
Revision:
1:f0ae84350631
Parent:
0:114b50b41972
tweak for 3.3v

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:
ddollar 1:f0ae84350631 9 HIH4030(PinName analog_in);
ddollar 1:f0ae84350631 10
simonbarker 0:114b50b41972 11 float sensorRH();
simonbarker 0:114b50b41972 12 float trueSensorRH(float temperature);
simonbarker 0:114b50b41972 13
simonbarker 0:114b50b41972 14 private:
ddollar 1:f0ae84350631 15 AnalogIn *m_analog_in;
simonbarker 0:114b50b41972 16 float sample;
simonbarker 0:114b50b41972 17 float temperature;
simonbarker 0:114b50b41972 18 };
simonbarker 0:114b50b41972 19 #endif