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