I have never seen any hard evidence that there is any I2C hardware support available. So I guess we'll have to fallback to bit-banging. Which actually works quite well though (if implemented right...)
The specification for the hardware driven I2C is not written in datasheet. There are pin assignments only. The I2C driver code of the Non-OS SDK 1.5.1 in driver folder uses bit-bang method. Usually, some dedicated registers for I2C stored in the chip, and software will control the register to communicate with peripherals. If ESP8266 adopts similar manner, some kind of access method should be specified in datasheet.
Meanwhile, I can see that the SDK driver code of SPI and UART are accessing the dedicated register.
Will mean what is this?
Sorry that ESP8266 do not have hardware I2C.
Users can refer to esp_iot_sdk\examples\driver_lib\driver\i2c_master for software I2C.
Thanks for your interest in ESP8266 !
Who is online
Users browsing this forum: No registered users and 1 guest
Newbies Start Here
Are you new to ESP8266?
Unsure what to do?
Dunno where to start?
Start right here!
We also have a RTOS version and a MESH version too!
Complete listing of the official ESP8266 related documentation release by ESPRESSIF!
Must read here!