sensor lib
Dependents: gather_sensor_data
Diff: DS1820Sensor.h
- Revision:
- 0:cbe8cd32b8d9
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/DS1820Sensor.h Thu Sep 08 14:05:15 2016 +0000 @@ -0,0 +1,24 @@ +#ifndef MBED_DS1820_SENSOR_H +#define MBED_DS1820_SENSOR_H + +#include "mbed.h" +#include <string> +#include "DS1820.h" +#include "sensorTypes.h" + + +class DS1820Sensor { + +public: + DS1820Sensor(PinName one_wire_pinname); + + sensorStatus readSensor(string &sensor_reading); + sensorStatus setReadingType(sensorReadingType sensor_reading_types = DS1820_ALL); + sensorReadingType getReadingType(); + +private: + DS1820 DS1820_sensor; + sensorReadingType reading_type; +}; + +#endif \ No newline at end of file