sensor lib

Dependents:   gather_sensor_data

BH1750Sensor.h

Committer:
readysteadygo2006
Date:
2016-09-08
Revision:
0:cbe8cd32b8d9

File content as of revision 0:cbe8cd32b8d9:

#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