Added auto-range function

This commit is contained in:
Kevin Townsend
2014-03-04 20:04:36 +01:00
parent a76d71988d
commit 19c254a2df

View File

@ -139,12 +139,15 @@ typedef struct
class Adafruit_Sensor {
public:
// Constructor(s)
// Adafruit_Sensor();
void constructor();
// These must be defined by the subclass
virtual void enableAutoRange(bool enabled) {};
virtual void getEvent(sensors_event_t*);
virtual void getSensor(sensor_t*);
private:
bool _autoRange;
};
#endif