Olyflyer wrote:I have successfully used the Adafruit_BMP085 library in the Arduino IDE with an ESP8266-01, but you have to modify the Adafruit_BMP085.cpp file to disable the Pressure calculation function as this uses a 'pwr' maths function which does not appear to be implemented yet in the ESP library. If you use the standard Adafruit_BMP085 library then you will get a compile failure related to the 'pwr' function.
After the library has been sorted, include both Wire.h and the Adafruit_BMP085.h libraries in your sketch, define SDA_pin & SCL_pin as the chosen GPIO pins on your ESP (I used GPIO0 for I2C_SCL and GPIO2 for I2C_SDA on an ESP8266-01 module) and then call Wire.begin(SDA_pin, SCL_pin) in the sketch setup section BEFORE calling Adafruit_BMP085.begin(). The Wire call will then cause the Adafruit library to use the defined I2C pins.
Do the above to a standard Adafruit example sketch & it should work ok.
Just connect the BMP180 to 3.3v, and the two chosen I2C pins.
Note that you cannot use the Pressure reading parts of any examples due to the above mentioned maths library issue.
With the replaced libm.a you can keep all functionality as there is sqrt, pow, pwr math.