I am trying to get a BMP085 working on a YUN, but I are unable to compile the example.
I have followed the instructions http://learn.adafruit.com/bmp085/using- ... 085-api-v2 and the instructions to install the Library http://learn.adafruit.com/adafruit-all- ... nstall-use. I realize that this script needs to be modified to use the bridge console as in http://forum.arduino.cc/index.php?topic=204661.0
I believe I have installed the libraries correctly as I see the example under "File"->"Examples" ->"Adafruit_BMP085_Unified"->"sensorapi" and the Library under "Sketch"->Import Library..."->"Adafruit_BMP085_Unified". I have even deleted the
directory then started IDE and it recreates the directory, so I am pretty positive I have the correct directory structure./home/user/Arduino/libraries/
This is the error message I am getting:
Any assistance will be greatly appreciated.Arduino: 1.5.5 (Linux), Board: "Arduino BANNED"
In file included from sensorapi.pde:3:
/home/user/Arduino/libraries/Adafruit_BMP085_Unified/Adafruit_BMP085_U.h:94: error: expected class-name before ‘{’ token
/home/user/Arduino/libraries/Adafruit_BMP085_Unified/Adafruit_BMP085_U.h:102: error: ‘sensors_event_t’ has not been declared
/home/user/Arduino/libraries/Adafruit_BMP085_Unified/Adafruit_BMP085_U.h:103: error: ‘sensor_t’ has not been declared
sensorapi.pde: In function ‘void displaySensorDetails()’:
sensorapi:40: error: ‘sensor_t’ was not declared in this scope
sensorapi:40: error: expected `;' before ‘sensor’
sensorapi:41: error: ‘sensor’ was not declared in this scope
sensorapi.pde: In function ‘void loop()’:
sensorapi:85: error: ‘sensors_event_t’ was not declared in this scope
sensorapi:85: error: expected `;' before ‘event’
sensorapi:86: error: ‘event’ was not declared in this scope
This report would have more information with
"Show verbose output during compilation"
enabled in File > Preferences.
Regards
Gregg