-->
Page 1 of 1

ESP8266 (ESP-12E) and OLED Display over I2C

PostPosted: Fri Mar 04, 2016 8:01 am
by Marek
Hello everyone.

I'm having toruble connecting my ESP8266 (E12-E) with OLED via I2C using this library: https://github.com/somhi/ESP_SSD1306

This is my display:
Image

To which pins on ESP-12E should I connect SDA and SCL pins from my display?
Also, do I need to connect RST pin? Or just pull it up to VCC with a resistor?

The example from this library contains following code:
Code: Select all/*
HardWare OLED ESP8266 I2C pins
Pin 17,   GPIO14   SCL
Pin 19,   GPIO15   SDA
*/

// Pin definitions
#define OLED_RESET  16  // Pin 15 -RESET digital signal


How do I understand this?
According to documentation GPIO15 should be always connected to GND..

This is my module:
Image

Re: ESP8266 (ESP-12E) and OLED Display over I2C

PostPosted: Fri Mar 04, 2016 4:06 pm
by schufti
Your didplay is configured for 4-wire spi, not i2c.
Look in the example sketches for the weather display, it uses this oled in spi mode

Re: ESP8266 (ESP-12E) and OLED Display over I2C

PostPosted: Fri Mar 04, 2016 4:39 pm
by Marek
The display is configured as I2C already. Tested with arduino Uno and it worked. The problem is still with ESP-12E

Re: ESP8266 (ESP-12E) and OLED Display over I2C

PostPosted: Fri Mar 04, 2016 6:45 pm
by schufti
with
Code: Select all  Wire.begin(0, 2);

in setup() you initialize the i2c library and define wich pins to use for sda,scl
the same pins will be used in xxx_SSD1306 library.
RST can be defined in init of xxx_SSD1306 library or handled as usual reset pin: 10nF to gnd and 10k to Vcc to reset at power-on.

p.s.: if allready modified why post misleading picture and not mention mod???