General area when it fits no where else

Moderator: Mmiscool

User avatar
By heckler
#68401 Hi Mihail,
So have you been successful in loading espbasic on the esp12 module?
have you been able to run any basic programs?

I would start by searching the "mmiscool" section of the forum for "i2c" and "i2c read" etc. etc.

I have never read anything from an I2C module so I don't have any sample code to share.

Be sure to read through the docs and especially the section about I2C commands.

https://docs.google.com/document/d/1EiY ... 70uv9yilc8


good luck.
dwight
User avatar
By trackerj
#68402 First check your wiring, double check allocated SDA/SCL pins, pull-up resistors if needed, Vcc, GND.
Next step, use a I2C scanner to confirm that your I2C device/s are working OK.

For a simple I2C scanner, take a look here, in the ESP Basic section:
http://esp8266-projects.com/2016/08/esp-basic-i2c-bus-scanner-example/
User avatar
By Mihail
#68405 Yes :) , I test the device and it is working normally. I start several programs and it works well !
I saw and try this tutorial for scanning i2c, but nothing is scanned when scanning!
to i2c.read() is printing 0
to i2c.end() is printing 2
I put pull-up resistors to VCC of both pins!