Adafruit_BMP085 on YUN

For other supported Arduino products from Adafruit: Shields, accessories, etc.

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
gregg douglas
 
Posts: 4
Joined: Fri Aug 17, 2012 9:31 am

Adafruit_BMP085 on YUN

Post by gregg douglas »

Hi,

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
/home/user/Arduino/libraries/
directory then started IDE and it recreates the directory, so I am pretty positive I have the correct directory structure.

This is the error message I am getting:
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.
Any assistance will be greatly appreciated.
Regards
Gregg

User avatar
adafruit_support_mike
 
Posts: 67446
Joined: Thu Feb 11, 2010 2:51 pm

Re: Adafruit_BMP085 on YUN

Post by adafruit_support_mike »

That version of the BMP085 library is designed to work with our unified sensor driver/library: http://learn.adafruit.com/using-the-ada ... troduction

The errors you're getting look like the compiler can't find that library: https://github.com/adafruit/Adafruit_Sensor

User avatar
gregg douglas
 
Posts: 4
Joined: Fri Aug 17, 2012 9:31 am

Re: Adafruit_BMP085 on YUN

Post by gregg douglas »

Ah, thanks Mike!!!

Working, thank-you very much.

Locked
Please be positive and constructive with your questions and comments.

Return to “Other Arduino products from Adafruit”