forked from adafruit/Adafruit_Sensor
Merge branch 'master' of github.com:adafruit/Adafruit_Sensor
This commit is contained in:
@ -1,5 +1,2 @@
|
||||
#include "Adafruit_Sensor.h"
|
||||
#include <avr/pgmspace.h>
|
||||
|
||||
void Adafruit_Sensor::constructor() {
|
||||
}
|
||||
|
@ -140,12 +140,13 @@ typedef struct
|
||||
class Adafruit_Sensor {
|
||||
public:
|
||||
// Constructor(s)
|
||||
void constructor();
|
||||
Adafruit_Sensor() {}
|
||||
virtual ~Adafruit_Sensor() {}
|
||||
|
||||
// These must be defined by the subclass
|
||||
virtual void enableAutoRange(bool enabled) {};
|
||||
virtual bool getEvent(sensors_event_t*);
|
||||
virtual void getSensor(sensor_t*);
|
||||
virtual bool getEvent(sensors_event_t*) = 0;
|
||||
virtual void getSensor(sensor_t*) = 0;
|
||||
|
||||
private:
|
||||
bool _autoRange;
|
||||
|
9
library.properties
Normal file
9
library.properties
Normal file
@ -0,0 +1,9 @@
|
||||
name=Adafruit Unified Sensor
|
||||
version=1.0.0
|
||||
author=Adafruit <info@adafruit.com>
|
||||
maintainer=Adafruit <info@adafruit.com>
|
||||
sentence=Required for all Adafruit Unified Sensor based libraries.
|
||||
paragraph=A unified sensor abstraction layer used by many Adafruit sensor libraries.
|
||||
category=Sensors
|
||||
url=https://github.com/adafruit/Adafruit_Sensor
|
||||
architectures=*
|
Reference in New Issue
Block a user