Moderator: igrr
I just tried my BMP180 with the ESP8266 yesterday - you can use the Adafruit BMP085 library and the example sketch, you just have to modify the library a bit.
In the file Adafruit_BMP085.cpp in line 29 the Wire library is started, here you have to pass your SDA and SCL line to get it to work:
Wire.begin(SDA_PIN, SCL_PIN);
For example: (should be the pins of a ESP-01, if I don´t mix things up here...)
Wire.begin(0, 2);
...you can also change the Adafruit_BMP085 begin( ) function and add two mor parameters to it. By default you can only pass the accuracy that should be used (default is HIGHRES). I extended the function to three import parameters - mode, sda_pin, scl_pin. So that I only have to pass these when calling the begin( ) function instead of hard-coding the pins in the library.
Hope this helps, if not - let me know...
https://www.hackster.io/fablabeu/esp8266-sensor
Have not had time to try it myself, yet.
Ray