From 1529ae7e677b4457f0d1d5d5dd7e2910574f1e6d Mon Sep 17 00:00:00 2001 From: Soo-Hyun Yoo Date: Mon, 9 Feb 2015 22:20:16 -0800 Subject: [PATCH] refs #17 Add thermistor type. --- src/sensor/thermistor.hpp | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 src/sensor/thermistor.hpp diff --git a/src/sensor/thermistor.hpp b/src/sensor/thermistor.hpp new file mode 100644 index 0000000..04a3d3c --- /dev/null +++ b/src/sensor/thermistor.hpp @@ -0,0 +1,16 @@ +#ifndef THERMISTOR_HPP_ +#define THERMISTOR_HPP_ + +#include + +struct ThermistorReading { + float celsius; +}; + +class Thermistor { +public: + virtual void init() = 0; + virtual ThermistorReading readTherm() = 0; +}; + +#endif