Added auto-range function
This commit is contained in:
parent
a76d71988d
commit
19c254a2df
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue