mirror of
https://github.com/adafruit/Adafruit_Sensor.git
synced 2025-08-04 17:44:25 +02:00
Added auto-range function
This commit is contained in:
@@ -139,12 +139,15 @@ typedef struct
|
|||||||
class Adafruit_Sensor {
|
class Adafruit_Sensor {
|
||||||
public:
|
public:
|
||||||
// Constructor(s)
|
// Constructor(s)
|
||||||
// Adafruit_Sensor();
|
|
||||||
void constructor();
|
void constructor();
|
||||||
|
|
||||||
// These must be defined by the subclass
|
// These must be defined by the subclass
|
||||||
|
virtual void enableAutoRange(bool enabled) {};
|
||||||
virtual void getEvent(sensors_event_t*);
|
virtual void getEvent(sensors_event_t*);
|
||||||
virtual void getSensor(sensor_t*);
|
virtual void getSensor(sensor_t*);
|
||||||
|
|
||||||
|
private:
|
||||||
|
bool _autoRange;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
Reference in New Issue
Block a user