So you're a Noob? Post your questions here until you graduate! Don't be shy.

User avatar
By awardblvr
#61149 I did a diff of Wire.[cpp|h] between ESP8266 and default Arduino

Quite a number of differences. But I cannot find any docs on what the differences are.

Contributors are:
Modified December 2014 by Ivan Grokhotkov (ivan@esp8266.com) - esp8266 support
Modified April 2015 by Hrsto Gochkov (ficeto@ficeto.com) - alternative esp8266 support

Does anyone have any basic overview of the differences and what impact they might have on a SW design?


Thanks


(How can I graduate to be a poster on the Arduino forum?)
User avatar
By al1fch
#61171 HI

No I2C hardware in ESP8266 chip.. So ESP8266 Wire libray is for 'bit banged' I2C. Before using I2C, pins for SDA and SCL need to be set by calling Wire.begin(int sda, int scl), i.e. Wire.begin(0, 2) on ESP-01, else they default to pins 4(SDA) and 5(SCL).

Maybe others differences but with my limited experience with I2C chips on ESP8266 I can't remember other ones with some consequences in SW