I got the Adafruit BMP085 a coupple days ago and I just started playing around with it, and I can't even get the programming example https://github.com/adafruit/Adafruit-BMP085-Library to work.
In the code it refers to "Wire.h" which isn't included in the library, as far as I can tell. Is it available somewhere else, or am I doing it wrong?
This is the error-message i get from the compiler:
In file included from sketch_jun04a.cpp:17:
C:\Users\username\Documents\Arduino\libraries\Adafruit_BMP085/Adafruit_BMP085.h:22:18: error: Wire.h: No such file or directory
sketch_jun04a.cpp: In member function 'boolean Adafruit_BMP085::begin(uint8_t)':
sketch_jun04a:28: error: 'Wire' was not declared in this scope
sketch_jun04a.cpp: In member function 'uint8_t Adafruit_BMP085::read8(uint8_t)':
sketch_jun04a:233: error: 'Wire' was not declared in this scope
sketch_jun04a.cpp: In member function 'uint16_t Adafruit_BMP085::read16(uint8_t)':
sketch_jun04a:256: error: 'Wire' was not declared in this scope
sketch_jun04a.cpp: In member function 'void Adafruit_BMP085::write8(uint8_t, uint8_t)':
sketch_jun04a:281: error: 'Wire' was not declared in this scope
Adafruit-BMP085
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- adafruit_support_bill
- Posts: 88153
- Joined: Sat Feb 07, 2009 10:11 am
Re: Adafruit-BMP085
Wire.h is part of the standard Arduino install. What version of the Arduino IDE are you using?
-
- Posts: 4
- Joined: Tue Jun 04, 2013 7:10 am
Re: Adafruit-BMP085
I'm using version 1.0.1.
I've found the Wire.h library now, so now I just need to figure out where to dump it
I've found the Wire.h library now, so now I just need to figure out where to dump it
- adafruit_support_bill
- Posts: 88153
- Joined: Sat Feb 07, 2009 10:11 am
Re: Adafruit-BMP085
It should in the Arduino Libraries folder of the IDE: ....\arduino-1.0.1\libraries\Wire
If it is not there, re-install the Arduino IDE. Everything is already in the right place in the install file.
If it is not there, re-install the Arduino IDE. Everything is already in the right place in the install file.
Please be positive and constructive with your questions and comments.