espressif / esp-idf

Espressif IoT Development Framework. Official development framework for Espressif SoCs.
Apache License 2.0
13.86k stars 7.32k forks source link

I2C timeout (IDFGH-1660) #3906

Closed tatulea closed 5 years ago

tatulea commented 5 years ago

Environment

Hi,

I have a timeout problem while trying to read BQ27220 device number. I posted it here (https://www.esp32.com/viewtopic.php?f=13&t=11847) with a lot more details

negativekelvin commented 5 years ago

i2c_set_timeout(I2C_NUM_0, 400000);

tatulea commented 5 years ago

Hi @negativekelvin, it works. Could you tell me why the "400000" is the "magic number"?

alprshn commented 1 year ago

bro try it. I solved problem SSD1306Wire display(0x3c, I2C_SDA, I2C_SCL, GEOMETRY_128_64, I2C_ONE, -1); You can look this link https://github.com/ThingPulse/esp8266-oled-ssd1306