Grelet Jacques
/
Ni-MH_V3
example code using statis library for temperature measurement with LM35 and LM335
Diff: temperatureSensor.h
- Revision:
- 2:9517837c642d
- Parent:
- 1:5821fa15d6ca
--- a/temperatureSensor.h Tue Nov 20 12:10:39 2012 +0000 +++ b/temperatureSensor.h Tue Nov 20 15:13:50 2012 +0000 @@ -11,6 +11,8 @@ #include <iostream> #include "mbed.h" // include mbed library +#include "filter.h" +#include "nimh.h" class temperatureSensor { @@ -20,10 +22,11 @@ float _convertion; float _scaleFactor; float _temperature; + filter _filter; public: // Constructor - temperatureSensor(PinName pin, float delay, float convertion); + temperatureSensor(PinName pin, float delay, float convertion, MODE mode, size_t size); // Destructor virtual ~temperatureSensor();