ThermistorPack.
Dependents: Pachube_TestProgram ThermistorPack_TestProgram _DearMrJeffMourich StarBoardOrangeExpansion2 ... more
Diff: ThermistorDummy.h
- Revision:
- 0:ac6a05fefa2f
- Child:
- 1:4f84f03b1703
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/ThermistorDummy.h Fri Sep 17 23:42:46 2010 +0000 @@ -0,0 +1,28 @@ +/** + * Sensor interface driver. (Version 0.0.1) + * + * Copyright (C) 2010 Shinichiro Nakamura (CuBeatSystems) + * http://shinta.main.jp/ + */ + +#ifndef _THERMISTOR_DUMMY_H_ +#define _THERMISTOR_DUMMY_H_ + +#include <mbed.h> + +#include "Thermistor.h" + +class ThermistorDummy : public Thermistor { +public: + ThermistorDummy(); + virtual ~ThermistorDummy(); + virtual double read(); +private: + static const int MIN = -10; + static const int MAX = 50; + double memory; + + static double getNextValue(double prev); +}; + +#endif