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

User avatar
By jonny772
#87469 Hi All, got myself confused. Hoping someone can clear up the IC2 pin out for a ESP-12S.

I have built a board which was prototyped using a WEMOS D1, I had it pick and place soldered and swapped out the WEMOS for a built in ESP-12S.

I have been working on the assumption that the IC2 pins were:
GPIO 5 -> SCL
GPIO 4 -> SDA

As it now cant find the accelerometer i'm guessing I have screwed up, googling I found a data sheet suggesting that the ESP-12s has:
IO 14 -> SCL
IO 2 -> SDA
https://www.elecrow.com/download/ESP-12 ... Manual.pdf

Anyone help clarify for me? If i messed up which ESP module should i have used?

Cheers!
User avatar
By Bonzo
#87478 I am using GPIO4 and 5 on my project.

Have you tried some software to check the device can be found?
User avatar
By davydnorris
#87480 The I2C pins can be any generic GPIO pins you have free as it's completely done in software. I use 4 and 5 but the default for a lot of Arduino is 2 and 14.

You can change what pins are used in the software - for Arduino it's done by passing in the pin numbers in the Wire.begin() function, in the NonOS SDK it's a define in the i2c_master.h file