Open kropochev opened 9 years ago
im facing the same issue
Make sure you downloaded the latest version of Adafruit_Sensor, we just made some changes!
i got this error Arduino: 1.6.1 (Windows 8.1), Board: "Arduino Mega or Mega 2560, ATmega2560 (Mega 2560)" sensorapi.pde:2:29: fatal error: Adafruit_Sensor.h: No such file or directory
compilation terminated.
Error compiling.
This report would have more information with "Show verbose output during compilation" enabled in File > Preferences.
On the newest github release of Adafruit Sensor, I had to change the constructor to the following to get it to work with my Intel Edison.
class Adafruit_Sensor { public: // Constructor(s) void constructor();
// These must be defined by the subclass virtual void enableAutoRange(bool enabled) {}; //virtual bool getEvent(sensors_eventt); virtual bool getEvent(sensors_eventt)=0; //virtual void getSensor(sensort); virtual void getSensor(sensort)=0;
private: bool _autoRange; };
error: redefinition of 'Adafruit_BMP085_Unified bmp' 40 | Adafruit_BMP085_Unified bmp; // I2C
In Arduino 1.5.3 for intel Galileo gen 2 with installed library Adafruit_Sensor and Adafruit_BMP085 an error: