Use this forum to chat about hardware specific topics for the ESP8266 (peripherals, memory, clocks, JTAG, programming)

User avatar
By tytower
#17790 Arduino uses pins A4 and A5 for SDA and SCL .
I am using the above board and wish to comunicate with a BMP180 Pressure/Temp sensor
I do not know which pins to use?
Can anyone point me in the right direction please?
User avatar
By tytower
#17795 I have found this page
from
http://devacron.com/arduino-ide-for-esp8266/
I2C (Wire library)

Only master mode works, and Wire.setClock has not been verified to give exactly correct frequency. Before using I2C, pins for SDA and SCL need to be set by calling Wire.pins(int sda, int scl), i.e.Wire.pins(0, 2); on ESP-01.


I tried " Wire.pins(3, 4);" Also tried "Wire.pins(3 sda, 4 scl);"
but it will not compile with the line in .Complains of wire not having a type? I dont see the function at all in the Wire library which is built in to the Arduino IDE nor Wire.setClock() mentioned in the quote
Last edited by tytower on Mon May 18, 2015 9:25 pm, edited 1 time in total.
User avatar
By tytower
#17827 ESP8266 can only be programmed by 1.6.1 IDE and the 8266 library - That will help
They hav'nt adjusted the library for 1.6.4 IDE yet--EDIT That happened last night and it works well!

I'm looking for I2C knowledge please
Last edited by tytower on Tue May 19, 2015 3:02 pm, edited 1 time in total.