- Tue Jun 23, 2015 7:41 pm
#21438
I2C works fine for me. I use Arduino 1.6.5 IDE which, for me , is better than 1.6.4.
Have I2C working with DS1307 clock. Use it in I2C Master/Slave configuration, where the ESP is the Master and an Arduino_board is Slave , so I can read 8 Analog 10 bit ADC channels (ESP has only one ADC which seems not very accurate)
Also works with OLED's (SDD1306 and SH1106 controller) and this I2C interface-board with PCF8574 used as interface for 16x2 and 20x4 LCD displays.
LiquidCrystal_I2C Example :
viewtopic.php?f=29&t=2289lib found here:
https://github.com/fdebrabander/Arduino ... 2C-libraryadd this:
#ifdef ARDUINO_ESP8266_ESP01
Wire.pins(0, 2);
#endif
for ESP01 use pins 0,2 (GPIO0=SDA , GPIO2=SCL)
for ESP_boards with more IO_pins use whichever 2 GPIO_pins you like.
If I2C-LCD module is 5-Volt, remove the 2 SMD I2C pull_up resistors on the interface board and use external pull_up resistors to the ESP 3V3. (4k7)