-->
Page 1 of 7

I2C pins on an ESP8266 ESP-12 board

PostPosted: Mon May 18, 2015 5:32 pm
by tytower
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?

Re: I2C pins on an ESP8266 ESP-12 board

PostPosted: Mon May 18, 2015 6:36 pm
by tytower
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

Re: I2C pins on an ESP8266 ESP-12 board

PostPosted: Mon May 18, 2015 7:53 pm
by szpapas
latest build can not working on my mac.

Re: I2C pins on an ESP8266 ESP-12 board

PostPosted: Tue May 19, 2015 2:57 am
by tytower
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